diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Error.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 00a2675eb..96017f368 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -118,7 +118,10 @@ sub ThrowTemplateError { time this message appeared. </p> <script type="text/javascript"> <!-- - document.write("<p>URL: " + document.location + "</p>"); + document.write("<p>URL: " + + document.location.href.replace(/&/g,"&") + .replace(/</g,"<") + .replace(/>/g,">") + "</p>"); // --> </script> <p>Template->process() failed twice.<br> |