]> git.mxchange.org Git - friendica.git/blobdiff - include/diaspora.php
"share" - now the attribut value for the "author" is escaped
[friendica.git] / include / diaspora.php
index 5fd4a4d3fddc1dc5a20e711a4b00b45c02258aa4..dcbe0fadaa9d141fe58349cb572d50e08df69320 100755 (executable)
@@ -1025,7 +1025,7 @@ function diaspora_reshare($importer,$xml,$msg) {
        $datarray['owner-link'] = $contact['url'];
        $datarray['owner-avatar'] = ((x($contact,'thumb')) ? $contact['thumb'] : $contact['photo']);
        if (intval(get_config('system','new_share'))) {
-               $prefix = "[share author='".$person['name'].
+               $prefix = "[share author='".str_replace("'", "'",$person['name']).
                                "' profile='".$person['url'].
                                "' avatar='".((x($person,'thumb')) ? $person['thumb'] : $person['photo']).
                                "' link='".$orig_url."']";