From 4fa3cf1ed3b082667bb9d5bdc5d0742ec4de94cd Mon Sep 17 00:00:00 2001 From: kkalev Date: Fri, 22 Oct 2004 12:12:37 +0000 Subject: [PATCH] In config.php3 remove whitespaces from $login. Don't remove '-' --- Changelog | 1 + conf/config.php3 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index bb58421..92b7903 100644 --- a/Changelog +++ b/Changelog @@ -27,6 +27,7 @@ Ver 1.75: * Fix a small typo in the userinfo mysql schema. Found by Evert Meulie * Fix bug #136, bugs found by Pawel Foremski * Small type in login_time_create, close bug #141 +* In config.php3 remove whitespaces from $login. Don't remove '-' Ver 1.72: * Move the xlat function to a separate file in lib/xlat.php3 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works) diff --git a/conf/config.php3 b/conf/config.php3 index adc99ae..2b0a2c8 100644 --- a/conf/config.php3 +++ b/conf/config.php3 @@ -71,7 +71,7 @@ if ($use_session == 0 && $config[general_use_session] == 'yes'){ } //Make sure we are only passed allowed strings in username if ($login != '') - $login = preg_replace("/[^\w\s\.\/\@\:]/",'',$login); + $login = preg_replace("/[^\w\.\/\@\:\-]/",'',$login); if ($login != '' && $config[general_strip_realms] == 'yes'){ $realm_del = ($config[general_realm_delimiter] != '') ? $config[general_realm_delimiter] : '@'; -- 2.39.5