Make QUrl::setScheme only parse in strict mode (no decoding)
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 31 Jul 2012 12:28:48 +0000 (14:28 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Aug 2012 11:04:18 +0000 (13:04 +0200)
commite1038794b1d7fe298535960eb90d5c823aa3f2c4
tree02f152e85fc942fa17239db3c5c4ac0ebe5d8651
parentf893d9ec41578c0981507dccc41d1ee2a11f6bae
Make QUrl::setScheme only parse in strict mode (no decoding)

The URI RFC defines schemes as containing only a very restricted set
of characters, none of which require encoding, so don't even
try. Testing this behaviour in some web browsers indicate that they do
not accept percent-encoded schemes either.

Change-Id: I692dd20e1aac7e8a1bcb276cb5113b5802393d38
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/io/qurl.cpp
src/corelib/io/qurl_p.h
tests/auto/corelib/io/qurl/tst_qurl.cpp