| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
This will allow to do less allocations in qt_ACE_do.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
| |
-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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reviewed-by: Trust Me
|
|
|
|
|
|
|
|
| |
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
|
|
|