[Interest] Did QUrlQuery::queryItemValue change its decoding behaviour in 5.2-beta1?
Thiago Macieira
thiago.macieira at intel.com
Thu Nov 7 18:50:36 CET 2013
On quinta-feira, 7 de novembro de 2013 14:02:06, Philipp Kursawe wrote:
> My code just broke when I wanted to use the return value of
> requestQuery.queryItemValue("redirect_uri");
>
> and expected it to be "schema://authorized" (as in <5.2) but instead got it
> back as undecoded value.
>
> So has the default behaviour changed? I couldn't find anything in the
> commit history about it.
There was a behaviour change, indeed. I fixed some problems with our
understanding of the URI specification.
In specific, this paragraph from RFC 3986:
URIs that differ in the replacement of a reserved character with
its corresponding percent-encoded octet are not equivalent.
Qt 5.0 and 5.1 got it wrong. Qt 4 was mostly right. Qt 3 was completely
broken.
For a full explanation, see
https://qt.gitorious.org/qt/qtbase/commit/993bbb4d4be524321575668740ea46c6665d6064
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131107/af11a163/attachment.sig>
More information about the Interest
mailing list