aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-10 01:44:21 -0800
committerfriendica <info@friendica.com>2014-02-10 01:44:21 -0800
commita7fa14800d083249539e884b8e9791de7a5cf1e3 (patch)
tree050bf25ee52b442aa0cbde6606b421bc99b8b551 /include/items.php
parenta76c53657bca9ea6aa2246535f117f7043bb5205 (diff)
downloadvolse-hubzilla-a7fa14800d083249539e884b8e9791de7a5cf1e3.tar.gz
volse-hubzilla-a7fa14800d083249539e884b8e9791de7a5cf1e3.tar.bz2
volse-hubzilla-a7fa14800d083249539e884b8e9791de7a5cf1e3.zip
better bookmark escaping
Diffstat (limited to 'include/items.php')
-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] . ']';
+
}