Skip to content

Commit 9c81154

Browse files
scottamainAndroid Git Automerger
authored andcommitted
am ad231a3: am db7da7e: am d9c8bbd: docs: fix xss issue bug 5125642
* commit 'ad231a303ee8fe7f8b51900d7b57971ab9963ad4': docs: fix xss issue bug 5125642
2 parents 4f0106c + ad231a3 commit 9c81154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/html/sdk/download.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ onclick="submit()" />
5252
<script language="javascript">
5353
var loc = window.location.href;
5454
if (loc.indexOf('?v=') != -1) {
55-
var filename = loc.substring(loc.indexOf('=')+1,loc.length);
55+
var filename = loc.substring(loc.indexOf('=')+1,loc.length).replace(/</g,"&lt;").replace(/>/g,"&gt;");
5656
document.write("File: " + filename);
5757
}
5858
</script>

0 commit comments

Comments
 (0)