[kmail2] [Bug 358049] New: URLs that end in . or ? aren't parsed correctly

kdex via KDE Bugzilla bugzilla_noreply at kde.org
Sat Jan 16 02:47:01 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=358049

            Bug ID: 358049
           Summary: URLs that end in . or ? aren't parsed correctly
           Product: kmail2
           Version: 5.1
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdepim-bugs at kde.org
          Reporter: kdex at kdex.de

The current implementation doesn't play well with URLs that contain a trailing
dot:

https://example.com/users/example.

is wrongly parsed as

https://example.com/users/example

and

https://example.com/users/example?

is, too, wrongly parsed as:

https://example.com/users/example

The relevance of the latter case is debatable, since in URLs, "?" commonly only
serves as a delimiter in front of the GET arguments. So, not parsing it
shouldn't make a difference to the URL pointed to.

The period, on the other hand, makes a drastic difference, since this is a
quite common character allowed in usernames for a lot of websites. Since most
RESTful websites have URL schemes such as `/users/${username}`, this completely
breaks the ability to freely link to your user page (which is how I found this
bug).

Reproducible: Always

Steps to Reproduce:
1. Write a mail that contains URLs that end in "." or "?"
2. View them in the message viewer

Actual Results:  
The characters "." and "?" aren't parsed, although they are valid URLs.

Expected Results:  
The parser should match these characters, too.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list