From: kkalev Date: Mon, 3 May 2004 12:15:09 +0000 (+0000) Subject: Also allow for '-' to exist in a nas name in bin/log_badlogins X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=dcb51bdb91e06f26ea7b12c92f75d994d148bf42;p=freeradius-dialup-admin.git Also allow for '-' to exist in a nas name in bin/log_badlogins --- diff --git a/Changelog b/Changelog index a10c265..bff65d5 100644 --- a/Changelog +++ b/Changelog @@ -22,6 +22,7 @@ Ver 1.70: * Add da_sql_escape_string for all relevant variables in lib/sql files * Keep the nas list in a separate array $nas_list. Update various pages to use that one now. * Make nas_list actually work +* Also allow for '-' to exist in a nas name in bin/log_badlogins Ver 1.68: * Huge PostgreSQL compatibility patch by Guy Fraser diff --git a/bin/log_badlogins b/bin/log_badlogins index 42660e2..c88a400 100755 --- a/bin/log_badlogins +++ b/bin/log_badlogins @@ -167,7 +167,7 @@ for(;;){ } $caller='' if (!defined($caller)); $user =~s/[^\w\-\.\d\!\@\s]//g; - $nas =~s/[^\w\.]//g; + $nas =~s/[^\w\.\-]//g; $port =~s/[^\d]//g; $addr = $client_array{$nas}; if ($user ne '' && $realm_strip eq 'yes'){