diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-30 00:20:32 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-30 00:20:32 +0000 |
commit | 4848bbbc2f355aafe577ec211d36c4ae28a61c9b (patch) | |
tree | 6240ef01cb2e02c4d735226203179bcf692ec03a /net/quic | |
parent | 79847cf448d8648e00029868936dc8b14904b9f7 (diff) | |
download | chromium_src-4848bbbc2f355aafe577ec211d36c4ae28a61c9b.zip chromium_src-4848bbbc2f355aafe577ec211d36c4ae28a61c9b.tar.gz chromium_src-4848bbbc2f355aafe577ec211d36c4ae28a61c9b.tar.bz2 |
Relax IsCanonicalizedHostCompliant again: allow the last component to start with
an alphanumeric character, not just an alphabetic one.
BUG=262206
TEST=Type "http://9a" in the omnibox, default choice should be to navigate
R=eroman@chromium.org
Review URL: https://codereview.chromium.org/21077005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic')
-rw-r--r-- | net/quic/crypto/crypto_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/quic/crypto/crypto_utils.cc b/net/quic/crypto/crypto_utils.cc index 9ecf3f2..469e582 100644 --- a/net/quic/crypto/crypto_utils.cc +++ b/net/quic/crypto/crypto_utils.cc @@ -54,7 +54,7 @@ bool CryptoUtils::IsValidSNI(StringPiece sni) { url_canon::CanonHostInfo host_info; string canonicalized_host(CanonicalizeHost(sni.as_string(), &host_info)); return !host_info.IsIPAddress() && - IsCanonicalizedHostCompliant(canonicalized_host, "") && + IsCanonicalizedHostCompliant(canonicalized_host, std::string()) && sni.find_last_of('.') != string::npos; } |