]> source.dussan.org Git - nextcloud-server.git/commitdiff
no use for double quotes here
authorMichiel de Jong <michiel@unhosted.org>
Thu, 17 May 2012 19:03:06 +0000 (21:03 +0200)
committerMichiel de Jong <michiel@unhosted.org>
Thu, 17 May 2012 19:03:06 +0000 (21:03 +0200)
apps/user_webfinger/host-meta.php

index d0d4999c1be5cd9c83da9b380f142c0139cbd4a3..32ffb512057f83237cd00463f6faa62807d01251 100644 (file)
@@ -4,7 +4,7 @@ $hostMetaHeader = array(
        'Content-Type' => 'application/xrd+json'
 );
 $serverName = $_SERVER['SERVER_NAME'];
-$hostMetaContents = "{\"links\":[{\"rel\":\"lrdd\",\"template\":\"http'.(isset($_SERVER['HTTPS'])?'s':'').'://'.$serverName.'/public.php?service=webfinger&q={uri}\"}]}";
+$hostMetaContents = '{"links":[{"rel":"lrdd","template":"http'.(isset($_SERVER['HTTPS'])?'s':'').'://'.$serverName.'/public.php?service=webfinger&q={uri}"}]}';
 foreach($hostMetaHeader as $header => $value) {
        header($header . ": " . $value);
 }