From kde-commits Fri Sep 30 19:50:18 2016 From: Peter Simonsson Date: Fri, 30 Sep 2016 19:50:18 +0000 To: kde-commits Subject: [konversation] src/viewer: Fix pipe char in nick name links Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=147526502601025 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 c= hannelnames in one link link =3D link.replace (' ', "%20"); + // HACK Handle pipe as toString doesn't seem to decode that correctly + link =3D link.replace ("%7C", "|"); = if (!link.isEmpty() && !link.startsWith('#')) Application::openUrl(url.toEncoded());