]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
"share" - now the attribut value for the "author" is escaped
[friendica.git] / mod / share.php
index e372031bbf6b55d90bc70949bfe8ffc69e7e1a57..e307294a6db8aa5fe5e8ff8dd23da4a862c7ae91 100644 (file)
@@ -23,7 +23,7 @@ function share_init(&$a) {
                        $pos = strpos($r[0]['body'], "[share");
                        $o = substr($r[0]['body'], $pos);
                } else {
-                       $o = "[share author='".$r[0]['author-name'].
+                       $o = "[share author='".str_replace("'", "'",$r[0]['author-name']).
                                "' profile='".$r[0]['author-link'].
                                "' avatar='".$r[0]['author-avatar'].
                                "' link='".$r[0]['plink']."']\n";