aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 88b258604..efc2322d5 100755
--- a/include/items.php
+++ b/include/items.php
@@ -159,6 +159,8 @@ function red_zrl_callback($matches) {
if($r)
$zrl = true;
}
+ if($matches[1] === '#^')
+ $matches[1] = '';
if($zrl)
return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
return $matches[1] . '#^[url=' . $matches[2] . ']' . $matches[2] . '[/url]';