Skip to content

Commit d9c8bbd

Browse files
committed
docs: fix xss issue
bug 5125642 Change-Id: I326b619643e3b3de20aa9303e92c9218fdfe50f7
1 parent 1c66faa commit d9c8bbd

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)