Skip to content

Commit ad231a3

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

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)