From 2c27ba66a5a05a52a6f0144ebd3e65562edba14b Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 13 May 2014 20:17:52 -0700 Subject: zrlify (turn into zmg) any relevant img tags in a post. --- mod/item.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 164b345f0..9470a2b9c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -440,6 +440,11 @@ function item_post(&$a) { $body = preg_replace_callback('/\[\$b64url(.*?)\[\/(url)\]/ism','red_unescape_codeblock',$body); $body = preg_replace_callback('/\[\$b64code(.*?)\[\/(code)\]/ism','red_unescape_codeblock',$body); + // fix any img tags that should be zmg + + $body = preg_replace_callback('/\[img(.*?)\](.*?)\[\/img\]/ism','red_zrlify_img_callback',$body); + + /** * -- cgit v1.2.3