[Konsole-devel] [Bug 210871] New: doesn't consider ")" as "end-of-url"

Andreas Pakulat apaku at gmx.de
Sat Oct 17 10:43:09 UTC 2009


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

           Summary: doesn't consider ")" as "end-of-url"
           Product: konsole
           Version: CVS
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: apaku at gmx.de


Konsole has this really nice feature to be able to open urls with a browser via
the context menu. I use this all the time to open urls from mails (mutt-user
here :). However this breaks for our bugzilla mails, in particular those for
attachments. Those mails contain this text:

Created an attachment (id=37629)
 --> (http://bugs.kde.org/attachment.cgi?id=37629)
 --> (http://bugs.kde.org/attachment.cgi?id=37629)

And konsole properly sees that the url starts after the opening parenthesis.
Unfortunately it seems to simply take everything up to the next whitespace
character as part of the url. Which means I can't use the open-url-in-browser
feature with the above url as konqueror then gets

http://bugs.kde.org/attachment.cgi?id=37629)

as url to open which of course gives me an error from bugzilla.

Hmm, I'm not sure how to fix this without breaking opening urls that contain a
literal ')' as part of the url. One option would be to count the ( and ) on the
line where the url is and then if the url ends with a ) and there was one
before the url started consider the one at the end to be not part of the url.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list