aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
parente346aa7560b93d1e5a331fa4ad9b16c70fe83ef7 (diff)
downloadvolse-hubzilla-c5f0b85357e04f436402d16a3b3781df47f30812.tar.gz
volse-hubzilla-c5f0b85357e04f436402d16a3b3781df47f30812.tar.bz2
volse-hubzilla-c5f0b85357e04f436402d16a3b3781df47f30812.zip
fix wall photos
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 19d771832..69cc624ea 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -429,7 +429,7 @@ function item_post(&$a) {
* otherwise http://elsewhere.com becomes #^[url=http://elsewhere.com]http://elsewhere.com[/url]
*/
- $body = preg_replace('/\[([uz])rl(.*?)\](.*?)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)(.*?)\[\/([uz])rl\]/ism','[$1rl$2]$3"$4"$5[/$6rl]',$body);
+ $body = preg_replace_callback('/\[([uz])rl(.*?)\](.*?)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)(.*?)\[\/([uz])rl\]/ism','red_escape_zrl_callback',$body);
$body = preg_replace_callback("/([^\]\='".'"'."]|^|\#\^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]+)/ism", 'red_zrl_callback', $body);