Issue Bug Closed

#107475Link browser breaks URL encoding

Mathias Brodala 09/17/25, 13:05 updated 12/02/25, 13:04

Description

Given an URL like this:

https://example.org/page?query=%7B%22foo%22:%5B%22bar%22%5D%7D

If such an URL is pasted into a link field and saved, the URL link is kept unchanged.

However, if the Link Browser is opened and closed without change via Set Link, the URL is modified:

https://example.org/page?query={\"foo\":[\"bar\"]}

1. All escape sequences are replaced with their plain counterparts
2. A backslash is put in front of double quotes.

According to RFC 1738 unsafe characters must always be escaped, so an URL like above is bound to cause issues.

Reviews 3