From bfa503a07fb840d32369a3399821c71dd380445f Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Thu, 15 Apr 2004 12:44:47 +0000 Subject: Backing out checkin from bug 238865: patch was negatively reviewed post-mortem. a=justdave --- page.cgi | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'page.cgi') diff --git a/page.cgi b/page.cgi index 6e78317fc..b68a9313b 100755 --- a/page.cgi +++ b/page.cgi @@ -42,19 +42,14 @@ Bugzilla->login(); my $cgi = Bugzilla->cgi; -my $id = $cgi->param('id'); -if ($id) { +if ($::FORM{'id'}) { # Remove all dodgy chars, and split into name and ctype. - $id =~ s/[^\w\-\.]//g; - $id =~ /(.*)\.(.*)/; - if (!$2) { - # if this regexp fails to match completely, something bad came in - ThrowCodeError("bad_page_cgi_id", { "page_id" => $id }); - } + $::FORM{'id'} =~ s/[^\w\-\.]//g; + $::FORM{'id'} =~ /(.*)\.(.*)/; my $format = GetFormat("pages/$1", undef, $2); - $cgi->param('id', $id); + $vars->{'form'} = \%::FORM; print $cgi->header($format->{'ctype'}); -- cgit v1.2.3-24-g4f1b