X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FXrd.php;h=ad2b25902567d238f1d5f663366f162140d9f251;hb=ffa44b8dc0b2ac0d65da245766cf0826e219d9a8;hp=29641482f625b86a41a1a7050a6fcb98e89c9c58;hpb=eb6b03b555ebfe8145ab826336f0d24aa7fbe46d;p=friendica.git diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 29641482f6..ad2b259025 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -1,6 +1,6 @@ baseUrl->get(); - $xml = null; - - XML::fromArray([ + $xmlString = XML::fromArray([ 'XRD' => [ '@attributes' => [ 'xmlns' => 'http://docs.oasis-open.org/ns/xri/xrd-1.0', @@ -319,10 +317,10 @@ class Xrd extends BaseModule ] ], ], - ], $xml); + ]); header('Access-Control-Allow-Origin: *'); - System::httpExit($xml->saveXML(), Response::TYPE_XML, 'application/xrd+xml'); + System::httpExit($xmlString, Response::TYPE_XML, 'application/xrd+xml'); } }