summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Error.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-03-04 18:08:09 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-03-04 18:08:09 +0100
commit43ce5f5bab1d5c5004c4eefe426ff19b88fd6c78 (patch)
tree2cb218910d9155c74255f9f3cc8097d729bb0771 /Bugzilla/Error.pm
parent126c681a05b4ce6bc3c0be34bf5335e170c596de (diff)
downloadbugzilla-43ce5f5bab1d5c5004c4eefe426ff19b88fd6c78.tar.gz
bugzilla-43ce5f5bab1d5c5004c4eefe426ff19b88fd6c78.tar.xz
Bug 979140: Remove remaining <tt> elements
r/a=glob
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r--Bugzilla/Error.pm12
1 files changed, 3 insertions, 9 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm
index 03bf04f83..37b28095a 100644
--- a/Bugzilla/Error.pm
+++ b/Bugzilla/Error.pm
@@ -192,24 +192,18 @@ sub ThrowTemplateError {
my $maintainer = Bugzilla->params->{'maintainer'};
my $error = html_quote($vars->{'template_error_msg'});
my $error2 = html_quote($template->error());
+ my $url = html_quote(Bugzilla->cgi->self_url);
+
print <<END;
- <tt>
<p>
Bugzilla has suffered an internal error. Please save this page and
send it to $maintainer with details of what you were doing at the
time this message appeared.
</p>
- <script type="text/javascript"> <!--
- document.write("<p>URL: " +
- document.location.href.replace(/&/g,"&amp;")
- .replace(/</g,"&lt;")
- .replace(/>/g,"&gt;") + "</p>");
- // -->
- </script>
+ <p>URL: $url</p>
<p>Template->process() failed twice.<br>
First error: $error<br>
Second error: $error2</p>
- </tt>
END
}
exit;