From f371ca6a98cf555713d76b4a87fa62c6ba592fab Mon Sep 17 00:00:00 2001 From: drbob Date: Tue, 24 Feb 2015 10:45:05 +0000 Subject: [PATCH] Trimmed whitespace from URL to fix internal retroshare links. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7970 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/Posted/PostedItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp index af420f75a..c22881663 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.cpp +++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp @@ -196,7 +196,7 @@ void PostedItem::fill() // The only combination that seems to work: load as EncodedUrl, extract toEncoded(). QUrl url; QByteArray urlarray(mPost.mLink.c_str()); - url.setEncodedUrl(urlarray); + url.setEncodedUrl(urlarray.trimmed()); QString urlstr = "Invalid Link"; QString sitestr = "Invalid Link"; bool urlOkay = url.isValid();