Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-79508

removeProtocol method in httpImpl class removes "http://////" from an input of "http://////foo.com", while "http://////" is not a protocol

    Details

      Description

      removeProtocol() handles some invalid inputs, such as http://///foo.com, as valid inputs.
      And in this case, the output is foo.com.

      However http:///// is not a protocol, see explanation here:
      https://en.wikipedia.org/wiki/URL#Syntax

      Java URI class treats http://////foo.com as valid input, and return ////foo.com

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                arthur.chen Arthur Chen
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 24 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP47
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 Beta 1
                  7.1.X
                  Master