Bugfix: raw html posting

This commit is contained in:
Michael Foster 2013-08-18 04:49:56 +10:00
parent 3a27060503
commit cff62b250c

View File

@ -1485,8 +1485,9 @@ function markup(&$body, $track_cites = false) {
$body = preg_replace('@<tinyboard (?!escape )([\w\s]+)>(.+?)</tinyboard>@us', '', $body);
$body = preg_replace('@<(tinyboard) escape ([\w\s]+)>@i', '<$1 $2>', $body);
if (isset($modifiers['raw html']) && $modifiers['raw html'] == '1')
return $body;
if (isset($modifiers['raw html']) && $modifiers['raw html'] == '1') {
return array();
}
$body = str_replace("\r", '', $body);
$body = utf8tohtml($body);