mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
getrrdimage.cgi: Allow more non-word characters in the URL
As discussed in bug #12615 Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de> Reviewed-by: Adolf Belka <adolf.belka@ipfire.org> Reviewed-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
a15db22f3b
commit
a276dfba7a
@@ -50,7 +50,7 @@ my $graph = $query{'graph'};
|
||||
my $range = lc $query{'range'}; # lower case
|
||||
|
||||
# Check parameters
|
||||
unless(($origin =~ /^\w+?\.cgi$/) && ($graph =~ /^[\w-]+?$/) && ($range ~~ @Graphs::time_ranges)) {
|
||||
unless(($origin =~ /^\w+?\.cgi$/) && ($graph =~ /^[\w\-.,; ]+?$/) && ($range ~~ @Graphs::time_ranges)) {
|
||||
# Send HTTP headers
|
||||
_start_png_output();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user