]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
In the user test page ignore comments from the auth.request file
authorkkalev <kkalev>
Mon, 9 Sep 2002 10:22:23 +0000 (10:22 +0000)
committerkkalev <kkalev>
Mon, 9 Sep 2002 10:22:23 +0000 (10:22 +0000)
Changelog
htdocs/user_test.php3

index 9125c2b766e9110e44ed4e93b6b37d1d71093cd6..085a1d4cb78722b4b66bbacc46da7daef4f1f2a8 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -46,6 +46,7 @@ Ver 1.59:
 * Update documentation
 * Only connect and bind to the ldap server if we haven't done that before.
 * Remove previous change. It was causing problems
+* In the user test page ignore comments from the auth.request file
 Ver 1.55:
 * Update the FAQ about missing attributes from the user/group edit pages and add a few comments
   in the configuration files
index d2219602ae0ecf976aecf41a280786f9a3baa374..c71a83cb4b7bf77fd21946475d654551e073ba03 100644 (file)
@@ -72,6 +72,9 @@ if ($test_user == 1){
        $fp = popen("$comm","w");
        if ($fp){
                foreach ($req as $val){
+                       // Ignore comments
+                       if (ereg('^[[:space:]]*#',$val) || ereg('^[[:space:]]*$',$val))
+                               continue;
                        fwrite($fp,$val);
                }
                if ($test_login){