aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-09 13:46:40 -0800
committerfriendica <info@friendica.com>2014-02-09 13:46:40 -0800
commit8727a75437f11f337dfbd97f671e5ba77355f29f (patch)
tree4d24834785870ca9fbd7d2e9ab34054134307b7e /include
parent63879210002866db884e102ed352f664f44a7baf (diff)
downloadvolse-hubzilla-8727a75437f11f337dfbd97f671e5ba77355f29f.tar.gz
volse-hubzilla-8727a75437f11f337dfbd97f671e5ba77355f29f.tar.bz2
volse-hubzilla-8727a75437f11f337dfbd97f671e5ba77355f29f.zip
fix the "every other link gets messed up" problem
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index acf05ed11..c69ac2c84 100755
--- a/include/items.php
+++ b/include/items.php
@@ -172,7 +172,9 @@ function red_zrl_callback($matches) {
function red_escape_zrl_callback($matches) {
- if((strpos($matches[3],'zmg') !== false) || (strpos($matches[3],'img') !== false))
+ // Uncertain why the url/zrl forms weren't picked up by the non-greedy regex.
+
+ if((strpos($matches[3],'zmg') !== false) || (strpos($matches[3],'img') !== false) || (strpos($matches[3],'zrl') !== false) || (strpos($matches[3],'url') !== false))
return $matches[0];
return '[' . $matches[1] . 'rl' . $matches[2] . ']' . $matches[3] . '"' . $matches[4] . '"' . $matches[5] . '[/' . $matches[6] . 'rl]';
}