note 94349 added to features.http-auth

From: Date: Thu, 29 Oct 2009 18:20:18 +0000
Subject: note 94349 added to features.http-auth
Groups: php.notes 
Request: Send a blank email to php-notes+get-162262@lists.php.net to get a copy of this message
PHP-CGI auth fix: if(isset($_SERVER['HTTP_AUTHORIZATION'])) { $auth_params = explode(":" , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); $_SERVER['PHP_AUTH_USER'] = $auth_params[0]; unset($auth_params[0]); $_SERVER['PHP_AUTH_PW'] = implode('',$auth_params); } Fixes autorization with passwords, containing ":" symbol ---- Server IP: 69.147.83.197 Probable Submitter: 94.25.138.199 ---- Manual Page -- http://www.php.net/manual/en/features.http-auth.php Edit -- https://master.php.net/note/edit/94349 Del: integrated -- https://master.php.net/note/delete/94349/integrated Del: useless -- https://master.php.net/note/delete/94349/useless Del: bad code -- https://master.php.net/note/delete/94349/bad+code Del: spam -- https://master.php.net/note/delete/94349/spam Del: non-english -- https://master.php.net/note/delete/94349/non-english Del: in docs -- https://master.php.net/note/delete/94349/in+docs Del: other reasons-- https://master.php.net/note/delete/94349 Reject -- https://master.php.net/note/reject/94349 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162262) next »