Reimplement the StrictMode URL parsing
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 28 Dec 2011 17:59:47 +0000 (15:59 -0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Mar 2012 23:19:59 +0000 (01:19 +0200)
commit329ee8cedc78de5304a84e0b205b08f39e439411
tree146167cd8f1f6781d0d5800274c085b9383b4c03
parentcff38329aa8635ac8a0696b0aa78782fe5605d16
Reimplement the StrictMode URL parsing

The strict mode check is now implemented after the tolerant parser has
finished, and only if the tolerant parser has not found any errors. We
catch the use of disallowed characters (control characters plus a few
not permitted anywhere) and broken percent encodings.

We do not catch the use of Unicode characters, as they are permitted
in IRIs.

In the tests, remove the old errorString test since it makes little
sense.

Change-Id: I8261a2ccad031ad68fc6377a206e59c9db89fb38
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