diff options
author | justdave%syndicomm.com <> | 2004-04-15 12:44:47 +0000 |
---|---|---|
committer | justdave%syndicomm.com <> | 2004-04-15 12:44:47 +0000 |
commit | bfa503a07fb840d32369a3399821c71dd380445f (patch) | |
tree | 57a3cd3ab0ac597bcde6182ad9147c994f44c115 /page.cgi | |
parent | f967249484892a3ab49b3b369b0f6995fee60288 (diff) | |
download | bugs-bfa503a07fb840d32369a3399821c71dd380445f.tar bugs-bfa503a07fb840d32369a3399821c71dd380445f.tar.gz bugs-bfa503a07fb840d32369a3399821c71dd380445f.tar.bz2 bugs-bfa503a07fb840d32369a3399821c71dd380445f.tar.xz bugs-bfa503a07fb840d32369a3399821c71dd380445f.zip |
Backing out checkin from bug 238865: patch was negatively reviewed post-mortem.
a=justdave
Diffstat (limited to 'page.cgi')
-rwxr-xr-x | page.cgi | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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'}); |