]> git.mxchange.org Git - friendica-addons.git/commitdiff
The attribut value for the "share" attribut "author" is now escaped.
authorMichael Vogel <icarus@dabo.de>
Fri, 21 Dec 2012 01:11:49 +0000 (02:11 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 21 Dec 2012 01:11:49 +0000 (02:11 +0100)
fromgplus/fromgplus.php

index 400dd92a7ebfb0dbb6add46135c435bdc2b194dd..f7841300f3531d5a3f7bd5d15082eaf59b932229 100644 (file)
@@ -329,7 +329,7 @@ function fromgplus_fetch($a, $uid) {
                                        $post = fromgplus_html2bbcode($item->annotation)."\n";
 
                                        if (intval(get_config('system','new_share'))) {
-                                               $post .= "[share author='".$item->object->actor->displayName.
+                                               $post .= "[share author='".str_replace("'", "&#039;",$item->object->actor->displayName).
                                                                "' profile='".$item->object->actor->url.
                                                                "' avatar='".$item->object->actor->image->url.
                                                                "' link='".$item->object->url."']";