diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-18 04:49:56 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-18 04:49:56 +1000 |
| commit | cff62b250c90f9fd336ceac5e2c557bf4c448859 (patch) | |
| tree | 6a7f708999b92c2f5520c5e2f0ba33e61a94f217 | |
| parent | 3a27060503b18815f7eb268bbce3df4c124aa24e (diff) | |
Bugfix: raw html posting
| -rw-r--r-- | inc/functions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 3b81cf4c..259245f3 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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); |
