summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Scott Main <smain@google.com> 2012-02-09 16:06:31 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2012-02-09 16:06:31 -0800
commit9c81154dfe88e7f94bd2a3359e035185722fcefe (patch)
treea9a7cd5768f494037d12dd11a7de2c764a4b53e4
parent4f0106cca0c40cd506367c894436f91c4920a5e1 (diff)
parentad231a303ee8fe7f8b51900d7b57971ab9963ad4 (diff)
am ad231a30: am db7da7ee: am d9c8bbd5: docs: fix xss issue bug 5125642
* commit 'ad231a303ee8fe7f8b51900d7b57971ab9963ad4': docs: fix xss issue bug 5125642
-rw-r--r--docs/html/sdk/download.jd2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/sdk/download.jd b/docs/html/sdk/download.jd
index 44fe5e4c0db1..af256096139c 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,"&lt;").replace(/>/g,"&gt;");
document.write("File: " + filename);
}
</script>