Skip to content

Commit 98c3133

Browse files
scottamainAndroid Git Automerger
authored andcommitted
am d9c8bbd: docs: fix xss issue bug 5125642
* commit 'd9c8bbd56a9c76a111f9441871e79516c521aa75': docs: fix xss issue bug 5125642
2 parents a300ea9 + d9c8bbd commit 98c3133

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)