mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-18 09:04:44 +01:00
Bugfix: raw html posting
This commit is contained in:
parent
cde7631d4b
commit
4b5e1909f5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user