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

Hyperlink is broken after switching to Source mode and back to rich editing in CKEditor

Details

    Description

      Issue
      Link with URL's with brackets is broken when posting or switching to Source and back in CKEditor.
      Root issue found in LPP-16115

      Steps to reproduce

      1. Start a new thread in Message Boards
      2. Click on the chain icon to add a new hyperlink
      3. set the URL below
        https://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx
      4. Note the hyperlink is created successfully
      5. Switch to Source mode
      6. Note that bbcode tag is correct
      7. Switch back to rich editing

      Expected behavior
      Hyperlink is the same as in step 4

      Actual behavior
      Hyperlink is converted into plain text as below (closing tag is missing)

      [url=https://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx]https://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx

      Sample URLs:

      [url=https://msdn.microsoft.com/en-us/library/aa752574VS.85.aspx]Simple URL[/url]
      
      [url=https://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx]Broken URL[/url]
      
      [url=javascript:alert('XSS');]XSS URL[/url]
      

      Attachments

        1. Editing-broken.PNG
          Editing-broken.PNG
          23 kB
        2. Editing-fixed.PNG
          Editing-fixed.PNG
          20 kB
        3. Published-fixed.PNG
          Published-fixed.PNG
          14 kB
        4. reproduced.png
          reproduced.png
          29 kB

        Issue Links

          Activity

            People

              beck.liu Beck Liu
              john.zhao John Zhao (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 45 weeks, 5 days ago

                Packages

                  Version Package
                  6.1.X EE
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5