Fix img path. Supporder GET options. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@522 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
dimka3210@gmail.com 2013-07-28 07:00:32 +00:00
commit 1b8c4d817c

View file

@ -497,7 +497,7 @@ class bbcode
function init_replacements ()
{
$tpl = $this->tpl;
$img_url_exp = 'http://[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png)';
$img_url_exp = 'http://[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png)([a-z0-9/?&%;][^\[\]]*)?';
$email_exp = '[a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+';
$url_exp = '[\w\#!$%&~/.\-;:=,?@а-яА-Я\[\]+]+?';