am d9c8bbd5: docs: fix xss issue bug 5125642

* commit 'd9c8bbd56a9c76a111f9441871e79516c521aa75':
  docs: fix xss issue bug 5125642
This commit is contained in:
Scott Main
2012-02-09 16:01:51 -08:00
committed by Android Git Automerger

View File

@ -52,7 +52,7 @@ onclick="submit()" />
<script language="javascript"> <script language="javascript">
var loc = window.location.href; var loc = window.location.href;
if (loc.indexOf('?v=') != -1) { if (loc.indexOf('?v=') != -1) {
var filename = loc.substring(loc.indexOf('=')+1,loc.length); var filename = loc.substring(loc.indexOf('=')+1,loc.length).replace(/</g,"&lt;").replace(/>/g,"&gt;");
document.write("File: " + filename); document.write("File: " + filename);
} }
</script> </script>