Eliminate PHP notices. Thanks to Pablo Alvarez de Sotomayor Posadillo
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 16 Aug 2008 08:58:19 +0000 (08:58 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 16 Aug 2008 08:58:19 +0000 (08:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13261 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/auth.php

index 358dea3359aa928d9466725c7ee8476abeb653f0..53fe9fd31f7b801591c08c8b2cd5e85c12ec7ec5 100644 (file)
@@ -199,7 +199,7 @@ function digest_md5_response ($username,$password,$challenge,$service,$host,$aut
  */
 function digest_md5_parse_challenge($challenge) {
     $challenge=base64_decode($challenge);
  */
 function digest_md5_parse_challenge($challenge) {
     $challenge=base64_decode($challenge);
-    while (isset($challenge)) {
+    while (isset($challenge) && $challenge !== FALSE) {
         if ($challenge{0} == ',') { // First char is a comma, must not be 1st time through loop
             $challenge=substr($challenge,1);
         }
         if ($challenge{0} == ',') { // First char is a comma, must not be 1st time through loop
             $challenge=substr($challenge,1);
         }