aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-09 00:30:43 -0800
committerfriendica <info@friendica.com>2014-02-09 00:30:43 -0800
commitc5f0b85357e04f436402d16a3b3781df47f30812 (patch)
tree34bcb06ef42bf5d70c3073236b091b2c67a7af12 /include/items.php
parente346aa7560b93d1e5a331fa4ad9b16c70fe83ef7 (diff)
downloadvolse-hubzilla-c5f0b85357e04f436402d16a3b3781df47f30812.tar.gz
volse-hubzilla-c5f0b85357e04f436402d16a3b3781df47f30812.tar.bz2
volse-hubzilla-c5f0b85357e04f436402d16a3b3781df47f30812.zip
fix wall photos
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index efc2322d5..acf05ed11 100755
--- a/include/items.php
+++ b/include/items.php
@@ -167,6 +167,15 @@ function red_zrl_callback($matches) {
}
+// If we've got a url or zrl tag with a naked url somewhere in the link text,
+// escape it with quotes unless the naked url is a linked photo.
+
+function red_escape_zrl_callback($matches) {
+
+ if((strpos($matches[3],'zmg') !== false) || (strpos($matches[3],'img') !== false))
+ return $matches[0];
+ return '[' . $matches[1] . 'rl' . $matches[2] . ']' . $matches[3] . '"' . $matches[4] . '"' . $matches[5] . '[/' . $matches[6] . 'rl]';
+}
/**
* @function post_activity_item($arr)