Fixed Insert link tool in BBCode editor strips ' characters from URLs

Affected version


Well-known member
  • Insert link tool in BBCode editor strips ' characters from URLs.
Steps to reproduce
  1. Copy a URL containing a ' character to the clipboard e.g.'s_law.
  2. Select the Insert Link icon (or press Ctrl+K) in the WYSYWIG BB code editor.
  3. Paste the URL, add some text for the link and press Insert.
  4. Select the Toggle BB code icon.
Desired behavior
  • Illegal ' should be encoded as %27 so the link becomes some text.
Actual behavior
  • Illegal ' is stripped from the URL so the link becomes some text which does not identify the same resource.

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 Beta 2).

Change log:
Improve URL sanitization when inserting links/image URLs via the rich text editor.
There may be a delay before changes are rolled out to the XenForo Community.