summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-14 03:00:40 +0200
committerlpsolit%gmail.com <>2006-07-14 03:00:40 +0200
commit12b3b674e4dac42707c39ce2389907f2e4e6a74c (patch)
tree1c2d6e6de10015c50dccf315dd578d9e34c42f57 /reports.cgi
parent8eadcd8aa1b2bdcab8f6d26c97d3cd9eeed252e2 (diff)
downloadbugzilla-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.gz
bugzilla-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.xz
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);
}