[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [konversation] src/viewer: Fix pipe char in nick name links
From: Peter Simonsson <peter.simonsson () gmail ! com>
Date: 2016-09-30 19:50:18
Message-ID: E1bq3p4-0005Gd-Ex () code ! kde ! org
[Download RAW message or body]
Git commit 1f8a3e0d2e0eb1a169d57e373226edb8f1c28698 by Peter Simonsson.
Committed on 30/09/2016 at 19:49.
Pushed by psn into branch 'master'.
Fix pipe char in nick name links
M +2 -0 src/viewer/ircview.cpp
http://commits.kde.org/konversation/1f8a3e0d2e0eb1a169d57e373226edb8f1c28698
diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp
index 3e9d94c..9991f4d 100644
--- a/src/viewer/ircview.cpp
+++ b/src/viewer/ircview.cpp
@@ -1973,6 +1973,8 @@ void IRCView::openLink(const QUrl& url)
QString link(url.toString());
// HACK Replace " " with %20 for channelnames, NOTE there can't be 2 channelnames in one link
link = link.replace (' ', "%20");
+ // HACK Handle pipe as toString doesn't seem to decode that correctly
+ link = link.replace ("%7C", "|");
if (!link.isEmpty() && !link.startsWith('#'))
Application::openUrl(url.toEncoded());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic