mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed encoding of special chars in RetroShare link after patch in revision 6600.
Added space to encoding and changed encoding to hex (e.g. %20 instead of %32). git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6705 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
dffba4225c
commit
9bec763c4b
@ -699,30 +699,30 @@ QString RetroShareLink::title() const
|
||||
static QString encodeItem(QString item)
|
||||
{
|
||||
return item
|
||||
// .replace("{", "%"+QString::number((int)'{'))
|
||||
// .replace("}", "%"+QString::number((int)'}'))
|
||||
// .replace("[", "%"+QString::number((int)'['))
|
||||
// .replace("]", "%"+QString::number((int)']'))
|
||||
// .replace("^", "%"+QString::number((int)'^'))
|
||||
// .replace("~", "%"+QString::number((int)'~'))
|
||||
// .replace(";", "%"+QString::number((int)';'))
|
||||
// .replace(":", "%"+QString::number((int)':'))
|
||||
// .replace("=", "%"+QString::number((int)'='))
|
||||
// .replace("+", "%"+QString::number((int)'+'))
|
||||
// .replace("$", "%"+QString::number((int)'$'))
|
||||
// .replace(",", "%"+QString::number((int)','))
|
||||
// .replace("\"", "%"+QString::number((int)'\"'))
|
||||
// .replace("|", "%"+QString::number((int)'|'))
|
||||
// .replace("?", "%"+QString::number((int)'?'))
|
||||
// .replace("@", "%"+QString::number((int)'@'))
|
||||
.replace("&", "%"+QString::number((int)'&'))//Not necessary: only for text link
|
||||
.replace("/", "%"+QString::number((int)'/'))
|
||||
// .replace(" ", "%"+QString::number((int)' '))
|
||||
.replace("#", "%"+QString::number((int)'#'))
|
||||
// .replace("£", "%"+QString::number((int)'£'))
|
||||
// .replace("µ", "%"+QString::number((int)'µ'))
|
||||
// .replace("§", "%"+QString::number((int)'§'))
|
||||
// .replace("!", "%"+QString::number((int)'!'))
|
||||
// .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))
|
||||
;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user