mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
A slight alteration from David to address performance issues with particular versions of PHP and IIS
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5573 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e0eada6950
commit
0cc02fd1b0
1 changed files with 3 additions and 3 deletions
|
@ -196,15 +196,15 @@ function bbencode_second_pass($text, $uid)
|
||||||
|
|
||||||
// [img]image_url_here[/img] code..
|
// [img]image_url_here[/img] code..
|
||||||
// This one gets first-passed..
|
// This one gets first-passed..
|
||||||
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
|
$patterns[] = "#\[img:$uid\]([^?](?:[^\[]+|\[(?!url))*?)\[/img:$uid\]#i";
|
||||||
$replacements[] = $bbcode_tpl['img'];
|
$replacements[] = $bbcode_tpl['img'];
|
||||||
|
|
||||||
// matches a [url]xxxx://www.phpbb.com[/url] code..
|
// matches a [url]xxxx://www.phpbb.com[/url] code..
|
||||||
$patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]|\[(?!url=))*?)\[/url\]#is";
|
$patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
|
||||||
$replacements[] = $bbcode_tpl['url1'];
|
$replacements[] = $bbcode_tpl['url1'];
|
||||||
|
|
||||||
// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
|
// [url]www.phpbb.com[/url] code.. (no xxxx:// prefix).
|
||||||
$patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]|\[(?!url=))*?)\[/url\]#is";
|
$patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
|
||||||
$replacements[] = $bbcode_tpl['url2'];
|
$replacements[] = $bbcode_tpl['url2'];
|
||||||
|
|
||||||
// [url=xxxx://www.phpbb.com]phpBB[/url] code..
|
// [url=xxxx://www.phpbb.com]phpBB[/url] code..
|
||||||
|
|
Loading…
Add table
Reference in a new issue