summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-17 17:56:38 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-17 17:56:38 +1000
commit28f366b686d8e8d62bd20160fb085330314601bd (patch)
treea2d6f672a14f72235c205a39f209981b02c82ba0 /inc
parent998002fd3442ad036391293fbb4382552081bf0f (diff)
keep casing of escape modifiers
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index d1ae2267..3b81cf4c 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1483,7 +1483,7 @@ function markup(&$body, $track_cites = false) {
$modifiers = extract_modifiers($body);
$body = preg_replace('@<tinyboard (?!escape )([\w\s]+)>(.+?)</tinyboard>@us', '', $body);
- $body = preg_replace('@<tinyboard escape ([\w\s]+)>@i', '<tinyboard $1>', $body);
+ $body = preg_replace('@<(tinyboard) escape ([\w\s]+)>@i', '<$1 $2>', $body);
if (isset($modifiers['raw html']) && $modifiers['raw html'] == '1')
return $body;
@@ -1632,7 +1632,7 @@ function markup(&$body, $track_cites = false) {
}
function escape_markup_modifiers($string) {
- return preg_replace('@<tinyboard ([\w\s]+)>@mi', '<tinyboard escape $1>', $string);
+ return preg_replace('@<(tinyboard) ([\w\s]+)>@mi', '<$1 escape $2>', $string);
}
function utf8tohtml($utf8) {