From: konrad Date: Sat, 4 Aug 2007 17:29:59 +0000 (+0000) Subject: fix: admin login did not work with netscape X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=f770dbe5883bdf6f1623cab9dbc8af846a34b402;p=web%2Fkonrad%2Fsmoke.git fix: admin login did not work with netscape git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@18 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/www/admin.php b/www/admin.php index 55c328c..612c861 100644 --- a/www/admin.php +++ b/www/admin.php @@ -4,8 +4,8 @@ include('loader.php'); if(!$db->canAdministrate()) die("Administration is turned off. Sorry."); if(!$db->checkAdmin()){ - header("HTTP/1.0 401 Authentication needed"); - header("WWW-Authenticate: Basic; Realm=Smoke Admin Login"); + header("HTTP/1.0 401 Unauthorized"); + header("WWW-Authenticate: Basic realm=\"Smoke Admin Login\""); echo "Need to login in order to administrate."; exit; }