Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8017164

Invalid URL to GetJava web page could be formed in deployJava.js in some cases

XMLWordPrintable

    • b97

        deployJava.js

        getJavaURL: 'http://java.com/dt-redirect',


        If you look at how getJavaURL is used - we might append it with query-string/form values:

          location.href = this.getJavaURL +
                                ((this.returnPage != null) ?
                                ('&returnPage=' + this.returnPage) : '') +
                                ((this.locale != null) ?
                                ('&locale=' + this.locale) : '') +
                                ((this.brand != null) ?
                                 ('&brand=' + this.brand) : '');


        So for example, if returnPage is "http://www.google.com", it does not work now, because it will be:

        http://java.com/dt-redirect&returnPage=http://www.google.com&locale=en-US

          1. testFF.html
            0.2 kB
          2. testIE.html
            0.2 kB

              dtitov Daniil Titov (Inactive)
              dtitov Daniil Titov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: