]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
vpn-statistic: add URI::escape for openvpn names with special chars
authorAlexander Marx <alexander.marx@ipfire.org>
Mon, 13 Apr 2015 14:26:48 +0000 (16:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 14 Apr 2015 12:00:47 +0000 (14:00 +0200)
html/cgi-bin/netovpnrw.cgi

index fed6d4d033d27e5c1cdcac0536ccae9b5dd1b76b..cae7770bb0f897b3a3a8aa8f258258373681551e 100755 (executable)
@@ -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];