зеркало из https://github.com/mozilla/pjs.git
Bug 272620: avoid XSS problem with internal error messages. Patch by gerv; r=justdave; a=justdave.
This commit is contained in:
Родитель
4391905db7
Коммит
bae80517e1
|
@ -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>
|
||||
|
|
|
@ -256,7 +256,10 @@
|
|||
the 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>
|
||||
</tt>
|
||||
|
|
Загрузка…
Ссылка в новой задаче