From: kkalev Date: Mon, 9 Sep 2002 10:22:23 +0000 (+0000) Subject: In the user test page ignore comments from the auth.request file X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=2ee832a83e719d11b1cfda6744b5c1098d85abf2;p=freeradius-dialup-admin.git In the user test page ignore comments from the auth.request file --- diff --git a/Changelog b/Changelog index 9125c2b..085a1d4 100644 --- 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 diff --git a/htdocs/user_test.php3 b/htdocs/user_test.php3 index d221960..c71a83c 100644 --- a/htdocs/user_test.php3 +++ b/htdocs/user_test.php3 @@ -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){