Ticket #1375 (closed defect: fixed)

Opened 2 years ago

Last modified 13 months ago

URLs with escape chars as shown as %2

Reported by: tiran Owned by: erijo
Priority: normal Milestone: 1.3.4
Component: qt/kde gui Version: devel
Keywords: Cc:

Description

I have sent a fried of mine an ordinary message with the following text (nothing more):

http://de.wikipedia.org/wiki/M%C3%BCnchen_%28Film%29

Where 'M%C3%BCnchen_%28Film%29' is the url encoded equivalent of 'München (Film)'. Both my chat window and the history window are showing the url as '%2'. The history file contains the correct url. Also the correct url was received by my friend. I had this problem several times before.

Further investigation has shown another possible related bug. The url 'http://de.wikipedia.org/wiki/München' in a chat window is underlined until the 'M' char and the rest is skippe. Clicking on the url opened a window with the url 'http://de.wikipedia.org/wiki/M'. It seems the url detection code doesn't like none ascii chars.

Change History

Changed 2 years ago by erijo

  • owner set to erijo
  • status changed from new to assigned

Changed 2 years ago by emostar

I think http://de.wikipedia.org/wiki/München is technically an invalid URL. URLs, according to the RFC can only have ASCII characters. So, Licq should not show the "ü" as part of the link. The first part of this bug should be fixed though.

Changed 2 years ago by erijo

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [4585].

Even if ü isn't technically correct, both konqueror and firefox accepts it as input, and konqueror even displays it that way. And since I can't see any disadvantage of allowing it to be part of the url, I've updated the regexp to allow all chars as part of the path.

Changed 13 months ago by anonymous

  • milestone 1.3.4 deleted

Milestone 1.3.4 deleted

Changed 13 months ago by erijo

  • milestone set to 1.3.4
Note: See TracTickets for help on using tickets.