diff options
| author | 2013-02-19 12:01:22 -0800 | |
|---|---|---|
| committer | 2013-02-19 12:01:22 -0800 | |
| commit | 803a6b0da037e6ae6eaf51712cde5545ab140dce (patch) | |
| tree | 34fb832da21acb8adbc79381032d3bc18163fdf5 | |
| parent | e91b053369638f81e725a47a7491853b06aca5ae (diff) | |
| parent | ed7713e161bdfdaa87278fbd369b3dc3939f12c3 (diff) | |
am ed7713e1: am e5c4846d: am 9dbb0b35: docs: sanitize input for badge generator bug: 8002240
* commit 'ed7713e161bdfdaa87278fbd369b3dc3939f12c3':
docs: sanitize input for badge generator bug: 8002240
| -rw-r--r-- | docs/html/distribute/googleplay/promote/badges.jd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/html/distribute/googleplay/promote/badges.jd b/docs/html/distribute/googleplay/promote/badges.jd index 23a116d62b00..738e76badc38 100644 --- a/docs/html/distribute/googleplay/promote/badges.jd +++ b/docs/html/distribute/googleplay/promote/badges.jd @@ -86,10 +86,11 @@ function buildButton(form) { if (form["package"].value != "com.example.android") { $("#preview").show(); - $("#snippet").show().html(linkStartCode + "apps/details?id=" + form["package"].value + var packageName = escapeHTML(form["package"].value); + $("#snippet").show().html(linkStartCode + "apps/details?id=" + packageName + imageStartCode + altText + imageSrcCode + selectedValue + imageEndCode); - $("#button-preview").html(linkStart + "apps/details?id=" + form["package"].value + $("#button-preview").html(linkStart + "apps/details?id=" + packageName + imageStart + altText + imageSrc + selectedValue + imageEnd); @@ -97,10 +98,11 @@ function buildButton(form) { _gaq.push(['_trackEvent', 'Distribute', 'Create Google Play Badge', 'Package ' + selectedValue]); } else if (form["publisher"].value != "Example, Inc.") { $("#preview").show(); - $("#snippet").show().html(linkStartCode + "search?q=pub:" + form["publisher"].value + var publisherName = escapeHTML(form["publisher"].value); + $("#snippet").show().html(linkStartCode + "search?q=pub:" + publisherName + imageStartCode + altText + imageSrcCode + selectedValue + imageEndCode); - $("#button-preview").html(linkStart + "search?q=pub:" + form["publisher"].value + $("#button-preview").html(linkStart + "search?q=pub:" + publisherName + imageStart + altText + imageSrc + selectedValue + imageEnd); |