mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed #506066, [img] didn't work with multiple instances directly following each other
git-svn-id: file:///svn/phpbb/trunk@2175 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
22626dc4cc
commit
7533fe4e05
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ function bbencode_first_pass($text, $uid)
|
||||||
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
|
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);
|
||||||
|
|
||||||
// [img]image_url_here[/img] code..
|
// [img]image_url_here[/img] code..
|
||||||
$text = preg_replace("#\[img\](([a-z]+?)://([^, \n\r]+))\[/img\]#si", "[img:$uid]\\1[/img:$uid]", $text);
|
$text = preg_replace("#\[img\](([a-z]+?)://([^ \n\r]+?))\[/img\]#si", "[img:$uid]\\1[/img:$uid]", $text);
|
||||||
|
|
||||||
// Remove our padding from the string..
|
// Remove our padding from the string..
|
||||||
$text = substr($text, 1);
|
$text = substr($text, 1);
|
||||||
|
@ -764,4 +764,4 @@ function smiley_sort($a, $b)
|
||||||
return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1;
|
return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue