diff options
| author | 2010-05-24 10:26:23 +0000 | |
|---|---|---|
| committer | 2010-05-24 10:26:23 +0000 | |
| commit | 8363987f02edc6da27b24233ab323643a9dc4ce8 (patch) | |
| tree | bb46206f9a0ea5afdf0193cbd82a75b383f93bf9 /src | |
| parent | Kill some debug noise. (diff) | |
| download | KVIrc-8363987f02edc6da27b24233ab323643a9dc4ce8.tar.gz KVIrc-8363987f02edc6da27b24233ab323643a9dc4ce8.tar.bz2 KVIrc-8363987f02edc6da27b24233ab323643a9dc4ce8.zip | |
reverted r4302 and r4303 as they could create an infinite loop on special urls
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4372 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvirc/ui/kvi_ircview_gettextline.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/kvirc/ui/kvi_ircview_gettextline.cpp b/src/kvirc/ui/kvi_ircview_gettextline.cpp index 30ee2c748..6698e4704 100644 --- a/src/kvirc/ui/kvi_ircview_gettextline.cpp +++ b/src/kvirc/ui/kvi_ircview_gettextline.cpp @@ -847,26 +847,7 @@ got_url: // These characters are "{", "}", "|", "\", "^", "~", "[", "]", and "`". (RFC1738) while((*p > 32) && (*p != '[') && (*p != '|') && (*p != '{') && (*p != '>') && - (*p != ']') && (*p != '}') && (*p != '<') && (*p != '"')&& (*p != '(') && (*p != ')'))p++; - // Handler for link like: http://it.wikipedia.org/wiki/Pagina_Principale_(mobile) - if(*p == '(') - { - int iCount=1; - p++; - while(1) - { - while((*p > 32) && (*p != '[') && (*p != '|') && (*p != '{') && (*p != '>') && - (*p != ']') && (*p != '}') && (*p != '<') && (*p != '"')) - { - if (*p=='(') iCount++; - else if (*p==')') iCount--; - p++; - if (!iCount) break; - } - if ((*p < 32) || (*p == '[') || (*p == '|') || (*p == '{') || (*p == '>') || - (*p == ']') || (*p == '}') || (*p == '<') || (*p == '"') || (*p == ')')) break; - } - } + (*p != ']') && (*p != '}') && (*p != '<') && (*p != '"'))p++; if(m_pKviWindow) { QString tmp; |
