From 8727a75437f11f337dfbd97f671e5ba77355f29f Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 9 Feb 2014 13:46:40 -0800 Subject: fix the "every other link gets messed up" problem --- include/items.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/items.php') 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]'; } -- cgit v1.2.3