Commit 651f3057 authored by Rex Dieter's avatar Rex Dieter
Browse files

encode #'s too

CCBUG: 172242
parent 15797c3a
......@@ -321,7 +321,7 @@ static QByteArray mrlEncode(QByteArray mrl)
{
for (int i = 0; i < mrl.size(); ++i) {
const unsigned char c = static_cast<unsigned char>(mrl.at(i));
if (c & 0x80 || c == '\\' || c < 32 || c == '%') {
if (c & 0x80 || c == '\\' || c < 32 || c == '%' || c == '#') {
char enc[4];
qsnprintf(enc, 4, "%%%02X", c);
mrl = mrl.left(i) + QByteArray(enc, 3) + mrl.mid(i + 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment