From 12b3b674e4dac42707c39ce2389907f2e4e6a74c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 14 Jul 2006 01:00:40 +0000 Subject: Bug 94534: Customised resolutions - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reports.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'reports.cgi') 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); } -- cgit v1.2.3-24-g4f1b