note 88372 deleted from features.http-auth by danbrown

From: Date: Wed, 21 Jan 2009 18:32:24 +0000
Subject: note 88372 deleted from features.http-auth by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149609@lists.php.net to get a copy of this message
Note Submitter: phi5ar at yahoo dot it ---- In Example #2 Digest HTTP Authentication example the part <?php preg_match_all('@(\w+)=(?:([\'"])([^\2]+)\2|([^\s,]+))@', $txt, $matches, PREG_SET_ORDER); ?> should be changed in <?php preg_match_all('@(\w+)=([\'"]?)([a-zA-Z0-9?=./\_-]+)\2@', $txt, $matches, PREG_SET_ORDER); ?> to work as well with urls containging question marks or a bit more longer than the root address.

« previous php.notes (#149609) next »