diff options
author | Alexis Christoforides <alexis@thenull.net> | 2017-10-19 19:46:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 19:46:13 +0300 |
commit | 1538798867f689b9c0064feff4067d78b518c3e9 (patch) | |
tree | 40cf02012631417cc5051904987a5b8759f20cd3 /mcs/class/referencesource | |
parent | 61559965a188d03456d6f7840a0cdabdf35c2400 (diff) | |
parent | 0ccfa87a91e1ff571527973405991a8213c3cf86 (diff) |
Merge pull request #5778 from alexischr/bug-56003
[System.URI] Don't reset host string processing on Unicode paths. Fix…
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r-- | mcs/class/referencesource/System/net/System/URI.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mcs/class/referencesource/System/net/System/URI.cs b/mcs/class/referencesource/System/net/System/URI.cs index 73e505d344e..24ddbc66e15 100644 --- a/mcs/class/referencesource/System/net/System/URI.cs +++ b/mcs/class/referencesource/System/net/System/URI.cs @@ -3969,13 +3969,6 @@ namespace System { if (hasUnicode && iriParsing && hostNotUnicodeNormalized){ flags |= Flags.HostUnicodeNormalized;// no host -#if MONO - // I am not certain this is the best fix but for Unix implicit paths with - // unicode characters the host must be valid (null or non-empty) as - // CreateUriInfo assumes. This should happen only for paths like /foo/path-with-unicode - if (newHost.Length == 0 && (flags & Flags.BasicHostType) != 0) - newHost = null; -#endif } return idx; |