mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:02:54 +00:00
it is space-season ... ;-) #3254
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
843b7a003c
commit
dad6a61be4
1 changed files with 5 additions and 5 deletions
|
@ -689,15 +689,15 @@ class dfrn {
|
|||
}
|
||||
|
||||
if ($r->link) {
|
||||
if (substr($r->link,0,1) == '<') {
|
||||
if (strstr($r->link,'&') && (! strstr($r->link,'&'))) {
|
||||
$r->link = str_replace('&','&', $r->link);
|
||||
if (substr($r->link, 0, 1) == '<') {
|
||||
if (strstr($r->link, '&') && (! strstr($r->link, '&'))) {
|
||||
$r->link = str_replace('&', '&', $r->link);
|
||||
}
|
||||
|
||||
$r->link = preg_replace('/\<link(.*?)\"\>/','<link$1"/>',$r->link);
|
||||
$r->link = preg_replace('/\<link(.*?)\"\>/', '<link$1"/>', $r->link);
|
||||
|
||||
// XML does need a single element as root element so we add a dummy element here
|
||||
$data = parse_xml_string("<dummy>".$r->link."</dummy>", false);
|
||||
$data = parse_xml_string("<dummy>" . $r->link . "</dummy>", false);
|
||||
if (is_object($data)) {
|
||||
foreach ($data->link AS $link) {
|
||||
$attributes = array();
|
||||
|
|
Loading…
Reference in a new issue