From: Alexander Marx Date: Mon, 13 Apr 2015 14:26:48 +0000 (+0200) Subject: vpn-statistic: add URI::escape for openvpn names with special chars X-Git-Tag: v2.17-core89~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f075ff8cfd3ff9c169a878a769f351b75d84f67;p=people%2Fstevee%2Fipfire-2.x.git vpn-statistic: add URI::escape for openvpn names with special chars --- diff --git a/html/cgi-bin/netovpnrw.cgi b/html/cgi-bin/netovpnrw.cgi index fed6d4d033..cae7770bb0 100755 --- a/html/cgi-bin/netovpnrw.cgi +++ b/html/cgi-bin/netovpnrw.cgi @@ -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];