From b847ec426173c2c5fcac1aa09c90d5cf4c0b2ae3 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 24 Feb 2016 15:45:57 +0000 Subject: [PATCH] authhtpasswd : Check if the first char exists before testing it git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2560 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authhtpasswd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authhtpasswd.php b/authhtpasswd.php index 18a6e56..d0f224e 100644 --- a/authhtpasswd.php +++ b/authhtpasswd.php @@ -36,7 +36,7 @@ class authhtpasswd extends auth foreach ($lines as $line) { // Comment line : skip it - if ($line{0} === "#") + if (isset ($line{0}) && $line{0} === "#") continue; $line = trim ($line); $user = strstr ($line, ":", true);