X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=8c28e7474422bc6f7808a78fcae29b66fd504833;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=4f939eaa0cbe12a5217254f9ad73b72ce350f440;hpb=0ea9af3d7da0d35570de645124f44350bca23397;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 4f939eaa0c..8c28e74744 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -8,12 +8,14 @@ require_once('include/xml.php'); function ping_init(&$a) { + $xmlhead = "<"."?xml version='1.0' encoding='UTF-8' ?".">"; + if (local_user()){ // Different login session than the page that is calling us. if (intval($_GET['uid']) && intval($_GET['uid']) != local_user()) { $data = array("invalid" => 1); header("Content-type: text/xml"); - echo xml::from_array(array("result" => $data)); + echo xml::from_array(array("result" => $data), $xml); killme(); } @@ -338,7 +340,7 @@ function ping_init(&$a) { $data["sysmsgs"] = $sysmsg; header("Content-type: text/xml"); - echo xml::from_array(array("result" => $data)); + echo xml::from_array(array("result" => $data), $xml); killme(); }