From c3662d4a59897d25aa9f676ef9e879a9f760eb2c Mon Sep 17 00:00:00 2001 From: czaks Date: Sat, 9 Aug 2014 05:12:36 +0200 Subject: [PATCH] handle tinyboard flags with length=0 --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 6ce76472..af2136bb 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1668,7 +1668,7 @@ function unicodify($body) { function extract_modifiers($body) { $modifiers = array(); - if (preg_match_all('@(.+?)@us', $body, $matches, PREG_SET_ORDER)) { + if (preg_match_all('@(.*?)@us', $body, $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { if (preg_match('/^escape /', $match[1])) continue;