summaryrefslogtreecommitdiffstats
path: root/tests/auto/qurl
Commit message (Collapse)AuthorAgeFilesLines
* Compile from repo checkoutVolker Hilsheimer2009-07-251-0/+2
|
* Improve performance in QUrl parsing by doing in-line operations.Thiago Macieira2009-07-211-2/+2
| | | | | | Unfortunately, I can't do it all inline because the punycode encoding and decoding requires reading the source several times. (Maybe the decoding can be done with some effort in the future)
* Change qt_nameprep to do in-line namepreppingThiago Macieira2009-07-211-6/+6
| | | | This will allow to do less allocations in qt_ACE_do.
* Implement strict STD3 checking of hostnames in URLs.Thiago Macieira2009-07-211-12/+84
| | | | | | | | | | | | | | | Made the toPunycodeHelper function write to a QString. Renamed qt_from_ACE to qt_ACE_do to indicate what it actually does. Added the STD3 rules for hostnames, forcing hostnames to have to strictly comply to STD3. Also, execute nameprep in the correct order (before trying to encode to Punycode). Validate hostnames when QUrlPrivate::canonicalHost() called, including validation of IP Literals. Validation of IPv4 is missing. Adapted other functions to use qt_ACE_do, notably QUrl::toAce (avoid code duplication).
* Disable private unit tests when Qt is configured withoutRohan McGovern2009-07-091-0/+4
| | | | | | | | | | | | -developer-build, part 2. Some autotests use private (unexported) code, either because they're testing private classes or because that's the easiest way to test the public classes. Configuring Qt with `-developer-build' is needed for these tests. This commit fixes the tests so configuring without `-developer-build' only builds the tests which strictly use public API.
* Autotest: remove or correct invalid testsThiago Macieira2009-06-261-20/+3
| | | | | | | | | | | In making QUrl more strict with hostnames (to avoid malicious attacks), I'm implementing the STD3 checks described by RFC 3490. These tests are invalid, so they are being removed or corrected. STD3 requires that the hostname be composed of Letters, Digits, Hyphens (so no underlines) and limited to 63 characters. Also, an empty port doesn't make sense.
* Autotest: Remove faulty test case: xn--fuball-cta.de is not allowedThiago Macieira2009-06-261-3/+1
| | | | | | There's only one permitted encoding for a hostname. If "fußball.de" expands to "fussball.de" (due to NFKC), then it can't be equivalent to xn-fuball-cta.de.
* Update license headers as requested by the marketing department.Jason McDonald2009-06-161-2/+2
| | | | Reviewed-by: Trust Me
* Remove obsolete code from autotests.Jason McDonald2009-04-161-8/+0
| | | | | | | | Each version of Qt has its own set of autotests, therefore preprocessor directives relating to obsolete QT_VERSION's are not necessary. Reviewed-by: Carlos Duclos
* Long live Qt 4.5!Lars Knoll2009-03-234-0/+3837