]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Backing out checkin from bug 238865: patch was negatively reviewed post-mortem.
authorjustdave%syndicomm.com <>
Thu, 15 Apr 2004 12:44:47 +0000 (12:44 +0000)
committerjustdave%syndicomm.com <>
Thu, 15 Apr 2004 12:44:47 +0000 (12:44 +0000)
a=justdave

page.cgi
template/en/default/global/code-error.html.tmpl
template/en/default/pages/linked.html.tmpl

index 6e78317fc06f88cf215de5da79df44848aae115b..b68a9313b4853e61ae50fb2e22838a9c69952b09 100755 (executable)
--- 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'});
 
index c5233b8e88dfd90443e3f86703f6073f18805e4b..342d67102d17c560231b2664bb8000839e942938 100644 (file)
   [% ELSIF error == "authres_unhandled" %]
     An authorization handler return value was not handled by the login code.
 
-  [% ELSIF error == "bad_page_cgi_id" %]
-    [% title = "Invalid Page ID" %]
-    The ID <code>[% page_id FILTER html %]</code> is not a
-    valid page identifier.
-
   [% ELSIF error == "bug_error" %]
     Trying to retrieve [% terms.bug %] [%+ bug.bug_id FILTER html %] returned 
     the error [% bug.error FILTER html %].
index fcb5ee9d0dd41b8003a564ede9d78e861650dd3c..2a3521a35810c5fec4aaea482f6022c63c1dc274 100644 (file)
@@ -21,8 +21,6 @@
   #%]
 
 [% INCLUDE global/header.html.tmpl title = "Your Linkified Text" %]
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
 
 <p>
   Copy and paste the text below:
@@ -32,7 +30,7 @@
 
 <p>
 <pre>
-[%- cgi.param("text") FILTER quoteUrls FILTER html -%]
+[%- form.text FILTER quoteUrls FILTER html -%]
 </pre>
 </p>
 
@@ -47,7 +45,7 @@
 
 <p>
 <pre>
-[%- cgi.param("text") FILTER quoteUrls -%]
+[%- form.text FILTER quoteUrls -%]
 </pre>
 </p>