1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Tue Jul 05 15:03:58 2016 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Wed Jul 06 20:07:09 2016 -0700 1.3 @@ -380,11 +380,12 @@ 1.4 HtmlTree script = new HtmlTree(HtmlTag.SCRIPT); 1.5 script.addAttr(HtmlAttr.TYPE, "text/javascript"); 1.6 String scriptCode = DocletConstants.NL + 1.7 - " targetPage = \"\" + window.location.search;" + DocletConstants.NL + 1.8 - " if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL + 1.9 - " targetPage = targetPage.substring(1);" + DocletConstants.NL + 1.10 - " if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + DocletConstants.NL + 1.11 - " targetPage = \"undefined\";" + DocletConstants.NL + 1.12 + " tmpTargetPage = \"\" + window.location.search;" + DocletConstants.NL + 1.13 + " if (tmpTargetPage != \"\" && tmpTargetPage != \"undefined\")" + DocletConstants.NL + 1.14 + " tmpTargetPage = tmpTargetPage.substring(1);" + DocletConstants.NL + 1.15 + " if (tmpTargetPage.indexOf(\":\") != -1 || (tmpTargetPage != \"\" && !validURL(tmpTargetPage)))" + DocletConstants.NL + 1.16 + " tmpTargetPage = \"undefined\";" + DocletConstants.NL + 1.17 + " targetPage = tmpTargetPage;" + DocletConstants.NL + 1.18 " function validURL(url) {" + DocletConstants.NL + 1.19 " try {" + DocletConstants.NL + 1.20 " url = decodeURIComponent(url);" + DocletConstants.NL +