mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 07:25:36 -04:00
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:
parent
6d26eda0f9
commit
f371ca6a98
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ void PostedItem::fill()
|
||||||
// The only combination that seems to work: load as EncodedUrl, extract toEncoded().
|
// The only combination that seems to work: load as EncodedUrl, extract toEncoded().
|
||||||
QUrl url;
|
QUrl url;
|
||||||
QByteArray urlarray(mPost.mLink.c_str());
|
QByteArray urlarray(mPost.mLink.c_str());
|
||||||
url.setEncodedUrl(urlarray);
|
url.setEncodedUrl(urlarray.trimmed());
|
||||||
QString urlstr = "Invalid Link";
|
QString urlstr = "Invalid Link";
|
||||||
QString sitestr = "Invalid Link";
|
QString sitestr = "Invalid Link";
|
||||||
bool urlOkay = url.isValid();
|
bool urlOkay = url.isValid();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue