Summary: | mis-escape: <http://bla/> becomes <http://bla/> | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | kris |
Component: | general | Assignee: | Andrew Stanley-Jones <asj> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | cullmann, lex.lists |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
kris
2003-06-30 13:01:13 UTC
kris@valiant:~/Source/kde/kdelibs/kdecore> diff -u kstringhandler.cpp kstringhan dler.cpp.patched --- kstringhandler.cpp 2003-06-30 13:28:18.000000000 +0200 +++ kstringhandler.cpp.patched 2003-06-30 13:27:56.000000000 +0200 @@ -613,7 +613,7 @@ QString KStringHandler::tagURLs( const QString& text ) { - /*static*/ QRegExp urlEx("(www\\.(?!\\.)|(f|ht)tp(|s)://)[\\d\\w\\./,:_~\\?=&;#@\\-\\+\\%]+[\\d\\w/]"); + /*static*/ QRegExp urlEx("(?:^|\\s)(www\\.(?!\\.)|(f|ht)tp(|s)://)[\\d\\w\\./,:_~\\?=&;#@\\-\\+\\%]+[\\d\\w/]"); QString richText( text ); int urlPos = 0, urlLen; Please test That patch doesn't actually solve the problem. It just makes <url> not higlight the url, but the problem still occurs for < url>, or any string that ends in ; This is a KStringHander problem, and tagURLs needs a port of the kdepim link locator class. [20:14:31] <Isotopp> <http://blog.koehntopp.de> -- ein test, bitte ignorieren The problem is still present in kde 3.3 release, using ksirc 1.3.11 (Suse Linux 9.1 precompiled binaries). Is this still relevant to recent KDE version? If not please close the bug. Thanks, Lex. Hi, the KDE libaries and applications version 4.x are obsolete and got replaced with Frameworks 5 and now 6 based variants that are still maintained. The issue in this bug doesn't seem to happen for me with these versions. |