mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
vpn-statistic: add URI::escape for openvpn names with special chars
This commit is contained in:
committed by
Michael Tremer
parent
7dfcaef067
commit
2f075ff8cf
@@ -20,7 +20,7 @@
|
||||
###############################################################################
|
||||
|
||||
use strict;
|
||||
|
||||
use URI::Escape;
|
||||
# enable only the following on debugging purpose
|
||||
#use warnings;
|
||||
#use CGI::Carp 'fatalsToBrowser';
|
||||
@@ -37,7 +37,7 @@ my %mainsettings = ();
|
||||
|
||||
my @vpns=();
|
||||
|
||||
my @querry = split(/\?/,$ENV{'QUERY_STRING'});
|
||||
my @querry = split(/\?/,uri_unescape($ENV{'QUERY_STRING'}));
|
||||
$querry[0] = '' unless defined $querry[0];
|
||||
$querry[1] = 'week' unless defined $querry[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user