qt5base-lts/tests/auto/corelib/io/qurl
Thiago Macieira caa598c843 Fix QUrl::matches for when removing authority parts (other than host)
QUrl::RemoveAuthority is RemoveUserInfo | RemovePort | 0x10, so the
condition

    if (options & QUrl::RemoveAuthority)

would match if any of the other bits for the username, password or port
were set, which meant we would skip the host comparison. Ditto for
username and RemovePassword.

[ChangeLog][QtCore][QUrl] Fixed a bug that caused QUrl::matches to
incorrectly compare two URLs with different hostnames or different
usernames as equal, if certain QUrl::RemoveXxx options were passed.

Change-Id: I015970a03b874898bba7fffd155856ab9d6cb1be
Fixes: QTBUG-70774
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2018-09-29 00:33:39 +00:00
..
.gitignore
idna-test.c Updated license headers 2016-01-21 18:55:18 +00:00
qurl.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
tst_qurl_mac.mm Updated license headers 2016-01-21 18:55:18 +00:00
tst_qurl.cpp Fix QUrl::matches for when removing authority parts (other than host) 2018-09-29 00:33:39 +00:00