From 1b8c4d817c98374c9e75b755ce8536c16421b630 Mon Sep 17 00:00:00 2001 From: "dimka3210@gmail.com" Date: Sun, 28 Jul 2013 07:00:32 +0000 Subject: [PATCH] r522 Fix img path. Supporder GET options. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@522 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/includes/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/includes/bbcode.php b/upload/includes/bbcode.php index 06412c2a7..2e9a4431d 100644 --- a/upload/includes/bbcode.php +++ b/upload/includes/bbcode.php @@ -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\#!$%&~/.\-;:=,?@а-яА-Я\[\]+]+?';