mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed rslinks with "
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8179 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
279cd3592e
commit
f659ba71e5
@ -629,32 +629,7 @@ QString RetroShareLink::title() const
|
|||||||
|
|
||||||
static QString encodeItem(QString item)
|
static QString encodeItem(QString item)
|
||||||
{
|
{
|
||||||
return item
|
return QUrl::toPercentEncoding(item);
|
||||||
// .replace("{", "%"+QString::number((int)'{', 16))
|
|
||||||
// .replace("}", "%"+QString::number((int)'}', 16))
|
|
||||||
// .replace("[", "%"+QString::number((int)'[', 16))
|
|
||||||
// .replace("]", "%"+QString::number((int)']', 16))
|
|
||||||
// .replace("^", "%"+QString::number((int)'^', 16))
|
|
||||||
// .replace("~", "%"+QString::number((int)'~', 16))
|
|
||||||
// .replace(";", "%"+QString::number((int)';', 16))
|
|
||||||
// .replace(":", "%"+QString::number((int)':', 16))
|
|
||||||
// .replace("=", "%"+QString::number((int)'=', 16))
|
|
||||||
// .replace("+", "%"+QString::number((int)'+', 16))
|
|
||||||
// .replace("$", "%"+QString::number((int)'$', 16))
|
|
||||||
// .replace(",", "%"+QString::number((int)',', 16))
|
|
||||||
// .replace("\"", "%"+QString::number((int)'\"', 16))
|
|
||||||
// .replace("|", "%"+QString::number((int)'|', 16))
|
|
||||||
// .replace("?", "%"+QString::number((int)'?', 16))
|
|
||||||
// .replace("@", "%"+QString::number((int)'@', 16))
|
|
||||||
.replace("&", "%"+QString::number((int)'&', 16))//Not necessary: only for text link
|
|
||||||
.replace("/", "%"+QString::number((int)'/', 16))
|
|
||||||
.replace(" ", "%"+QString::number((int)' ', 16))
|
|
||||||
.replace("#", "%"+QString::number((int)'#', 16))
|
|
||||||
// .replace("£", "%"+QString::number((int)'£', 16))
|
|
||||||
// .replace("µ", "%"+QString::number((int)'µ', 16))
|
|
||||||
// .replace("§", "%"+QString::number((int)'§', 16))
|
|
||||||
// .replace("!", "%"+QString::number((int)'!', 16))
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString RetroShareLink::toString() const
|
QString RetroShareLink::toString() const
|
||||||
|
Loading…
Reference in New Issue
Block a user