Fixes RegExp
This commit is contained in:
parent
3ce9386cb1
commit
539a5c5da1
|
@ -127,7 +127,7 @@ class Tag
|
||||||
*/
|
*/
|
||||||
public static function storeFromBody(int $uriid, string $body, string $tags = '#@!')
|
public static function storeFromBody(int $uriid, string $body, string $tags = '#@!')
|
||||||
{
|
{
|
||||||
if (!preg_match_all("/([" . $tags . "])\[url\=(.*?)\](.*?)\[\/url\]/ism", $body, $result, PREG_SET_ORDER)) {
|
if (!preg_match_all("/([" . $tags . "])\[url\=([^\[\]]*)\](.*?)\[\/url\]/ism", $body, $result, PREG_SET_ORDER)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user