Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ed09207e
Commit
ed09207e
authored
Jan 04, 2005
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 272620: avoid XSS problem with internal error messages. Patch by gerv; r=justdave; a=justdave.
parent
a90c06d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Error.pm
Bugzilla/Error.pm
+4
-1
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+4
-1
No files found.
Bugzilla/Error.pm
View file @
ed09207e
...
@@ -118,7 +118,10 @@ sub ThrowTemplateError {
...
@@ -118,7 +118,10 @@ sub ThrowTemplateError {
time this message appeared.
time this message appeared.
</p>
</p>
<script type="text/javascript"> <!--
<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>
</script>
<p>Template->process() failed twice.<br>
<p>Template->process() failed twice.<br>
...
...
template/en/default/global/code-error.html.tmpl
View file @
ed09207e
...
@@ -256,7 +256,10 @@
...
@@ -256,7 +256,10 @@
the time this message appeared.
the time this message appeared.
</p>
</p>
<script type="text/javascript"> <!--
<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>
</script>
</tt>
</tt>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment