mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
"share" - now the attribut value for the "author" is escaped
This commit is contained in:
parent
f4bc5c57f3
commit
7c7d3fe5de
5 changed files with 5 additions and 6 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue