note 72973 added to features.http-auth

From: Date: Tue, 06 Feb 2007 12:20:05 +0000
Subject: note 72973 added to features.http-auth
Groups: php.notes 
Request: Send a blank email to php-notes+get-122917@lists.php.net to get a copy of this message
Example for digest doesn't work (at least for me): use this fix: -------------- preg_match_all('@(\w+)=(?:(([\'"])(.+?)\3|([A-Za-z0-9/]+)))@', $txt, $matches, PREG_SET_ORDER); foreach ($matches as $m) { $data[$m[1]] = $m[4] ? $m[4] : $m[5]; unset($needed_parts[$m[1]]); } It's also better to but to put the Auth-Digest-Header in a function and call it on unsuccessful authentification again. Otherwise users only have the chance to submit their username/password just one time. ---- Server IP: 217.160.72.57 Probable Submitter: 217.91.101.116 ---- Manual Page -- http://www.php.net/manual/en/features.http-auth.php Edit -- https://master.php.net/note/edit/72973 Del: integrated -- https://master.php.net/note/delete/72973/integrated Del: useless -- https://master.php.net/note/delete/72973/useless Del: bad code -- https://master.php.net/note/delete/72973/bad+code Del: spam -- https://master.php.net/note/delete/72973/spam Del: non-english -- https://master.php.net/note/delete/72973/non-english Del: in docs -- https://master.php.net/note/delete/72973/in+docs Del: other reasons-- https://master.php.net/note/delete/72973 Reject -- https://master.php.net/note/reject/72973 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122917) next »