diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-06-08 02:20:32 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-21 00:31:54 (GMT) |
commit | f607530faf94bcee975a54042d817e9705a4dba1 (patch) | |
tree | 68f952567c728db67ff2ea0e4ae0b0cfb43ec754 /tests | |
parent | 58507f6bdf32262dcb56d4d2c0c8c8a0812967b7 (diff) | |
download | Qt-f607530faf94bcee975a54042d817e9705a4dba1.zip Qt-f607530faf94bcee975a54042d817e9705a4dba1.tar.gz Qt-f607530faf94bcee975a54042d817e9705a4dba1.tar.bz2 |
QUrl stringprep: fix handling of U+0080: it's prohibited
Edge case: a > that should have been >=. Without it, we never ran the
rest of the IDN nameprepping.
(cherry-picked from qtbase commit 4d93393a6de2d6631979df2bc6d12aa43781dc6f)
Change-Id: I2276d660de3a70d0c561bb18816820d9a0f47e77
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qurl/tst_qurl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qurl/tst_qurl.cpp b/tests/auto/qurl/tst_qurl.cpp index cd696e4..19306fa 100644 --- a/tests/auto/qurl/tst_qurl.cpp +++ b/tests/auto/qurl/tst_qurl.cpp @@ -3067,6 +3067,11 @@ void tst_QUrl::nameprep_testsuite_data() << QString::fromUtf8("\x10\x7F") << QString() << 0 << 0; + QTest::newRow("Non-ASCII 8bit control character U+0080") + << QString::fromUtf8("x\xC2\x80x") + << QString() + << QString("Nameprep") << 0 << STRINGPREP_CONTAINS_PROHIBITED; + QTest::newRow("Non-ASCII 8bit control character U+0085") << QString::fromUtf8("x\xC2\x85x") << QString() |