https://bugs.kde.org/show_bug.cgi?id=503748
Bug ID: 503748
Summary: KUriFilter unexpectedly encodes some special
characters of remote URL with a query containing two @
Classification: Frameworks and Libraries
Product: frameworks-kio
Version: 6.13.0
Platform: Gentoo Packages
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
If I call KUriFilter::filterUrl with an URL with a query containing two @
symbols, some of the special characters are encoded, which changes the URL. For
example:
https://abc.com/[email protected]&[email protected]
is filtered into
https://abc.com/%3fmail1%3dmail%40xyz.com%26mail2%[email protected]
I don't think that this should happen, as the original URL is valid.
I don't know whether this is a new behavior or not: I started noticing it a
couple of months ago using Konqueror to open a link to a message in Google
Classroom. I got the link in a mail sent automatically by Google Classroom, so
I assume it's correct (and indeed it works in other browsers). However, after
clicking on it I was shown a page claiming the URL didn't exist. I then tried
copying the URL from the mail and pasting it in Konqueror location bar. After
pressing return, I noticed that the URL in the location bar had been changed,
with several special symbols (?, =, one of the two @) being replaced by their
percent encoding representation. For example, the URL
https://accounts.google.com/AccountChooser?continue=https://classroom.google.com/s?email%[email protected]&[email protected]
had become
https://accounts.google.com/AccountChooser%3Fcontinue%3Dhttps://classroom.google.com/s%3femail%253duser.name%40my.company.it%26email%[email protected]
--
You are receiving this mail because:
You are watching all bug changes.