Backing out checkin from bug 238865: patch was negatively reviewed post-mortem.

a=justdave
This commit is contained in:
justdave%syndicomm.com 2004-04-15 05:44:47 +00:00
Родитель fcfa993e38
Коммит e917075a69
3 изменённых файлов: 6 добавлений и 18 удалений

Просмотреть файл

@ -42,19 +42,14 @@ Bugzilla->login();
my $cgi = Bugzilla->cgi; my $cgi = Bugzilla->cgi;
my $id = $cgi->param('id'); if ($::FORM{'id'}) {
if ($id) {
# Remove all dodgy chars, and split into name and ctype. # Remove all dodgy chars, and split into name and ctype.
$id =~ s/[^\w\-\.]//g; $::FORM{'id'} =~ s/[^\w\-\.]//g;
$id =~ /(.*)\.(.*)/; $::FORM{'id'} =~ /(.*)\.(.*)/;
if (!$2) {
# if this regexp fails to match completely, something bad came in
ThrowCodeError("bad_page_cgi_id", { "page_id" => $id });
}
my $format = GetFormat("pages/$1", undef, $2); my $format = GetFormat("pages/$1", undef, $2);
$cgi->param('id', $id); $vars->{'form'} = \%::FORM;
print $cgi->header($format->{'ctype'}); print $cgi->header($format->{'ctype'});

Просмотреть файл

@ -56,11 +56,6 @@
[% ELSIF error == "authres_unhandled" %] [% ELSIF error == "authres_unhandled" %]
An authorization handler return value was not handled by the login code. 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" %] [% ELSIF error == "bug_error" %]
Trying to retrieve [% terms.bug %] [%+ bug.bug_id FILTER html %] returned Trying to retrieve [% terms.bug %] [%+ bug.bug_id FILTER html %] returned
the error [% bug.error FILTER html %]. the error [% bug.error FILTER html %].

Просмотреть файл

@ -21,8 +21,6 @@
#%] #%]
[% INCLUDE global/header.html.tmpl title = "Your Linkified Text" %] [% INCLUDE global/header.html.tmpl title = "Your Linkified Text" %]
[% USE Bugzilla %]
[% cgi = Bugzilla.cgi %]
<p> <p>
Copy and paste the text below: Copy and paste the text below:
@ -32,7 +30,7 @@
<p> <p>
<pre> <pre>
[%- cgi.param("text") FILTER quoteUrls FILTER html -%] [%- form.text FILTER quoteUrls FILTER html -%]
</pre> </pre>
</p> </p>
@ -47,7 +45,7 @@
<p> <p>
<pre> <pre>
[%- cgi.param("text") FILTER quoteUrls -%] [%- form.text FILTER quoteUrls -%]
</pre> </pre>
</p> </p>