Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.9.0
-
None
Description
QByteArray::fromPercentEncoding incorrectly decodes strings which have percentages (%) followed by 2 characters where either character is not a hex digit.
I.e.
QByteArray::fromPercentEncoding("%$&")
returns the character 'f', while it should leave the entire sequence untouched.
This bug happens because the code decodes any sequence following a percentage, while RFC 3986 only says to decode percent-encoded octets (specified to be a percentage followed by two hex digits in section 2.1)
Attachments
For Gerrit Dashboard: QTBUG-61474 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
197724,2 | Fix QByteArray::fromPercentEncoding | 5.9 | qt/qtbase | Status: ABANDONED | -1 | 0 |