Ensure that no extra bits can leak into QUrl::toEncoded.
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 22 May 2012 13:16:01 +0000 (15:16 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 24 Jun 2012 17:26:29 +0000 (19:26 +0200)
commit7590ca03ced07f1a3e9d1aab30e6d5b239009ac4
treec1dcb68cfb3ada42b9eedaf75966c1abf657a32f
parentd92118231006d522da93d8a90fe8d6fce3378db8
Ensure that no extra bits can leak into QUrl::toEncoded.

Technically, this function should take QUrl::UrlFormattingOptions, but
that doesn't exist. So we just mask out the high bits that determine
the encoding options. toEncoded only supports one encoding way: fully
encoded.

Change-Id: I1445ad7c292500921ec2672be4524d7d76a39f98
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qurl.cpp