1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

handle tinyboard flags with length=0

This commit is contained in:
czaks 2014-08-09 05:12:36 +02:00
parent 1b2f512339
commit c3662d4a59

View File

@ -1668,7 +1668,7 @@ function unicodify($body) {
function extract_modifiers($body) { function extract_modifiers($body) {
$modifiers = array(); $modifiers = array();
if (preg_match_all('@<tinyboard ([\w\s]+)>(.+?)</tinyboard>@us', $body, $matches, PREG_SET_ORDER)) { if (preg_match_all('@<tinyboard ([\w\s]+)>(.*?)</tinyboard>@us', $body, $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) { foreach ($matches as $match) {
if (preg_match('/^escape /', $match[1])) if (preg_match('/^escape /', $match[1]))
continue; continue;