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
This commit is contained in:
drbob 2015-02-24 10:45:05 +00:00
parent 6d26eda0f9
commit f371ca6a98

View File

@ -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();