aboutsummaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-14 01:00:40 +0000
committerlpsolit%gmail.com <>2006-07-14 01:00:40 +0000
commit12b3b674e4dac42707c39ce2389907f2e4e6a74c (patch)
tree1c2d6e6de10015c50dccf315dd578d9e34c42f57 /reports.cgi
parent8eadcd8aa1b2bdcab8f6d26c97d3cd9eeed252e2 (diff)
downloadbugs-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar
bugs-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.gz
bugs-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.bz2
bugs-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.xz
bugs-12b3b674e4dac42707c39ce2389907f2e4e6a74c.zip
Bug 94534: Customised resolutions - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/reports.cgi b/reports.cgi
index 9df5824d7..e0ef55daf 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -228,10 +228,10 @@ sub chart_image_name {
# is that we have to check the safety of doing this. We can't just require
# that the fields exist, because what stats were collected could change
# over time (eg by changing the resolutions available)
- # Instead, just require that each field name consists only of letters
- # and number
+ # Instead, just require that each field name consists only of letters,
+ # numbers, underscores and hyphens.
- if ($datasets !~ m/^[A-Za-z0-9:]+$/) {
+ if ($datasets !~ m/^[A-Za-z0-9:_-]+$/) {
$vars->{'datasets'} = $datasets;
ThrowUserError('invalid_datasets', $vars);
}