diff options
author | Scott Main <smain@google.com> | 2012-02-09 15:57:09 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2012-02-09 15:57:09 -0800 |
commit | d9c8bbd56a9c76a111f9441871e79516c521aa75 (patch) | |
tree | c47424cb281625510b861ccf6dc3a220900121ab /docs/html | |
parent | 1c66faab73b2ce54bfe362f3c051ce95ed89fb22 (diff) | |
download | frameworks_base-d9c8bbd56a9c76a111f9441871e79516c521aa75.zip frameworks_base-d9c8bbd56a9c76a111f9441871e79516c521aa75.tar.gz frameworks_base-d9c8bbd56a9c76a111f9441871e79516c521aa75.tar.bz2 |
docs: fix xss issue
bug 5125642
Change-Id: I326b619643e3b3de20aa9303e92c9218fdfe50f7
Diffstat (limited to 'docs/html')
-rw-r--r-- | docs/html/sdk/download.jd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/sdk/download.jd b/docs/html/sdk/download.jd index 44fe5e4..af25609 100644 --- a/docs/html/sdk/download.jd +++ b/docs/html/sdk/download.jd @@ -52,7 +52,7 @@ onclick="submit()" /> <script language="javascript"> var loc = window.location.href; 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,"<").replace(/>/g,">"); document.write("File: " + filename); } </script> |