aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-08 12:08:07 -0800
committerfriendica <info@friendica.com>2014-02-08 12:08:07 -0800
commite346aa7560b93d1e5a331fa4ad9b16c70fe83ef7 (patch)
tree0fe5347fc2672d0681c409b3d5bd1c8379c75232 /include
parente71571f619e94ab6fbbd92dea819a0effa071484 (diff)
downloadvolse-hubzilla-e346aa7560b93d1e5a331fa4ad9b16c70fe83ef7.tar.gz
volse-hubzilla-e346aa7560b93d1e5a331fa4ad9b16c70fe83ef7.tar.bz2
volse-hubzilla-e346aa7560b93d1e5a331fa4ad9b16c70fe83ef7.zip
that's better
Diffstat (limited to 'include')
-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]';