]> git.mxchange.org Git - friendica.git/commitdiff
silly mistake
authorfriendica <info@friendica.com>
Fri, 30 Mar 2012 04:18:47 +0000 (21:18 -0700)
committerfriendica <info@friendica.com>
Fri, 30 Mar 2012 04:18:47 +0000 (21:18 -0700)
include/conversation.php

index 6283cfe0aef07f9196089298dd4200d941ad6d8b..1c3ee43b0a41bf117668cf3fa2b7194a7f5876a5 100755 (executable)
@@ -167,9 +167,10 @@ function localize_item(&$item){
                }
        }
        $matches = null;
-       if(preg_match_all('/@[url=(.*?)]/is',$item['body'],$matches,PREG_SET_ORDER)) {
+       if(preg_match_all('/@\[url=(.*?)\]/is',$item['body'],$matches,PREG_SET_ORDER)) {
                foreach($matches as $mtch) {
-                       $item['body'] = str_replace($mtch[0],'@[url=' . zrl($mtch[1]). ']',$item['body']);
+                       if(! strpos($mtch[1],'zrl='))
+                               $item['body'] = str_replace($mtch[0],'@[url=' . zrl($mtch[1]). ']',$item['body']);
                }
        }