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 ($r->link) {
|
||||||
if (substr($r->link,0,1) == '<') {
|
if (substr($r->link, 0, 1) == '<') {
|
||||||
if (strstr($r->link,'&') && (! strstr($r->link,'&'))) {
|
if (strstr($r->link, '&') && (! strstr($r->link, '&'))) {
|
||||||
$r->link = str_replace('&','&', $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
|
// 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)) {
|
if (is_object($data)) {
|
||||||
foreach ($data->link AS $link) {
|
foreach ($data->link AS $link) {
|
||||||
$attributes = array();
|
$attributes = array();
|
||||||
|
|
Loading…
Reference in a new issue