aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index d78792839..97994854a 100755
--- a/include/items.php
+++ b/include/items.php
@@ -180,11 +180,12 @@ function red_escape_zrl_callback($matches) {
}
function red_escape_codeblock($m) {
- return '[code]' . base64_encode($m[1]) . '[/code]';
+ return '[$b64' . $m[2] . base64_encode($m[1]) . '[/' . $m[2] . ']';
}
function red_unescape_codeblock($m) {
- return '[code]' . base64_decode($m[1]) . '[/code]';
+ return '[' . $m[2] . base64_decode($m[1]) . '[/' . $m[2] . ']';
+
}