Summary: | html entities in topic instead of actual characters | ||
---|---|---|---|
Product: | [Applications] konversation | Reporter: | JPD <tightcode> |
Component: | general | Assignee: | Konversation Developers <konversation-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
JPD
2005-03-04 16:29:05 UTC
On Friday 04 March 2005 15:29, JPD wrote:
> topic JavaScript, JScript, ECMAScript, et al (!= Java) | Do NOT paste in
> the channel. Pastebot: www.erxz.com/pb/ | Just ASK, and ask publically in
> the channel. | <http://jsfreenode.homelinux.org/>
The bug is because it's interpreting the > as part of the url (which is valid
- you can have urls with that in it).
CVS commit by johnflux: Fix bug 100820, and fix the bug where if you type: "hello >" then press up, it will be turned into "hello >" BUG:100820 M +1 -1 common.cpp 1.37 M +1 -1 ircinput.cpp 1.65 --- kdeextragear-2/konversation/konversation/common.cpp #1.36:1.37 @@ -68,5 +68,5 @@ QString tagURLs(const QString& text, con urlLen =0; - QRegExp urlPattern("((www\\.(?!\\.)|(fish|(f|ht)tp(|s))://)[\\d\\w\\./,\\':~\\?=&;#@\\-\\+\\%\\*\\{\\}]+)|" + QRegExp urlPattern("((www\\.(?!\\.)|(fish|(f|ht)tp(|s))://)([\\d\\w\\./,\\':~\\?=;#@\\-\\+\\%\\*\\{\\}]|&)+)|" "([-.\\d\\w]+@[-.\\d\\w]{2,}\\.[\\w]{2,})"); urlPattern.setCaseSensitive(false); --- kdeextragear-2/konversation/konversation/ircinput.cpp #1.64:1.65 @@ -34,5 +34,5 @@ #define MAXHISTORY 100 -#define RICHTEXT 1 +#define RICHTEXT 0 IRCInput::IRCInput(QWidget* parent) : KTextEdit(parent) commit 20b711922c9e761c1d3db91b2a9ce991088b92e9 Author: John Tapsell <john.tapsell@kdemail.net> Date: Fri Mar 4 16:12:38 2005 +0000 Fix bug 100820, and fix the bug where if you type: "hello >" then press up, it will be turned into "hello >" BUG:100820 svn path=/trunk/kdeextragear-2/konversation/; revision=394882 diff --git a/konversation/common.cpp b/konversation/common.cpp index 81ba888..9257a9a 100644 --- a/konversation/common.cpp +++ b/konversation/common.cpp @@ -67,7 +67,7 @@ QString tagURLs(const QString& text, const QString& fromNick) pos = 0; urlLen =0; - QRegExp urlPattern("((www\\.(?!\\.)|(fish|(f|ht)tp(|s))://)[\\d\\w\\./,\\':~\\?=&;#@\\-\\+\\%\\*\\{\\}]+)|" + QRegExp urlPattern("((www\\.(?!\\.)|(fish|(f|ht)tp(|s))://)([\\d\\w\\./,\\':~\\?=;#@\\-\\+\\%\\*\\{\\}]|&)+)|" "([-.\\d\\w]+@[-.\\d\\w]{2,}\\.[\\w]{2,})"); urlPattern.setCaseSensitive(false); diff --git a/konversation/ircinput.cpp b/konversation/ircinput.cpp index 8059e70..27f1b21 100644 --- a/konversation/ircinput.cpp +++ b/konversation/ircinput.cpp @@ -33,7 +33,7 @@ #include "ircview.h" #define MAXHISTORY 100 -#define RICHTEXT 1 +#define RICHTEXT 0 IRCInput::IRCInput(QWidget* parent) : KTextEdit(parent) { |