diff --git a/upload/engine/libs/bbcode.parse.php b/upload/engine/libs/bbcode.parse.php index 8df8cbf..7537894 100644 --- a/upload/engine/libs/bbcode.parse.php +++ b/upload/engine/libs/bbcode.parse.php @@ -160,7 +160,7 @@ ), 'url' => array( - 'pattern' => '/\[(url)\=\"(http(s)?\:\/\/[\w\.\/\?\=\&\%\+\~\*\-]+)\"\]((?:[^[]|(?R))*)\[\/url\]/Usi', + 'pattern' => '/\[(url)\=\"(http(s)?\:\/\/[\w\.\/\?\=\&\;\%\+\~\*\-]+)\"\]((?:[^[]|(?R))*)\[\/url\]/Usi', 'replace' => '{4}', 'values' => array(1,2,4), 'escapes' => false, @@ -177,7 +177,7 @@ // Шаблоны ББ-кодов с опциями и тонкими настройками регулярок (не рекурсивные) private $codes_once = array( 'img' => array( - 'pattern' => '/\[img\](http(s)?\:\/\/[\w\.\/\?\=\&\%\+\~\*\-]+)\[\/img\]/Usi', + 'pattern' => '/\[img\](http(s)?\:\/\/[\w\.\/\?\=\&\;\%\+\~\*\-]+)\[\/img\]/Usi', 'replace' => 'IMG', ), @@ -187,7 +187,7 @@ ), 'url' => array( - 'pattern' => '/\[url\](http(s)?\:\/\/[\w\.\/\?\=\&\%\+\~\*\-]+)\[\/url\]/Usi', + 'pattern' => '/\[url\](http(s)?\:\/\/[\w\.\/\?\=\&\;\%\+\~\*\-]+)\[\/url\]/Usi', 'replace' => '$1', ),