Correctly escape proxy domains in WebRequest (bug #36356)
commit6ae64e4022e111fc00eef9c2de08886375892a13
authorAndi McClure <andi.mcclure@xamarin.com>
Mon, 7 Dec 2015 21:01:51 +0000 (7 16:01 -0500)
committerAndi McClure <andi.mcclure@xamarin.com>
Mon, 7 Dec 2015 21:01:51 +0000 (7 16:01 -0500)
treeba7b83c486c182b2f6282ac2bdc29cb34e8d4f26
parentf1c147af8f1f823014163d4c021a2717cdc2a1da
Correctly escape proxy domains in WebRequest (bug #36356)

Our implementation for System.Net.WebRequest takes proxy exclusions
which are in fileglob (*.example.com) format, and passes them to
System.Net.WebProxy as a "bypass list", which expects Regex format.
This means immediate failure if you have an exclusion with a fileglob,
because WebProxy will throw an exception for bad Regex format.
mcs/class/System/System.Net/WebRequest.cs