[Mapbender-commits] r6737 - branches/banjo_dev/mapbender/http/rest

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 10 06:54:26 EDT 2010


Author: banjo
Date: 2010-08-10 10:54:26 +0000 (Tue, 10 Aug 2010)
New Revision: 6737

Modified:
   branches/banjo_dev/mapbender/http/rest/http_auth.php
Log:
Changes in http_auth



Modified: branches/banjo_dev/mapbender/http/rest/http_auth.php
===================================================================
--- branches/banjo_dev/mapbender/http/rest/http_auth.php	2010-08-10 10:23:57 UTC (rev 6736)
+++ branches/banjo_dev/mapbender/http/rest/http_auth.php	2010-08-10 10:54:26 UTC (rev 6737)
@@ -14,7 +14,7 @@
     header('HTTP/1.1 401 Unauthorised');
     header('WWW-Authenticate: Digest realm="'.REALM.
       '",qop="auth",nonce="'.getNonce().'",opaque="'.md5(REALM).'"');
-    die(send_rest_response(401);
+    die(send_die_rest_response(401);
   }
 
   //Get the http header in an array
@@ -32,7 +32,7 @@
   $userInfo = getUserInfo($mbUsername, $mbEmail);
 
   if ($userInfo[0] == '-1') {
-    die(send_rest_response(401));
+    die(send_die_rest_response(401));
   }
 
   //First check the stale!
@@ -42,7 +42,7 @@
   } else {
     //Stale nonce received (probably more than x seconds old)
     $stale = true;
-    die(send_rest_response(408));
+    die(send_die_rest_response(408));
   }
 
   // generate the expected response
@@ -53,7 +53,7 @@
 
   //Compare the expected response with the actual response
   if ($getHeaderArray['response'] != $expected_response) {
-    die(send_rest_response(401));
+    die(send_die_rest_response(401));
   }
   
   //Authenticated



More information about the Mapbender_commits mailing list