Windows sometimes strips protocol when url is passed to handler

Conflicts:

	SparkleShare/Windows/SparkleShareInviteOpener/sparkleshare-invite-opener.cs
This commit is contained in:
friflaj 2012-08-17 00:44:33 +02:00 committed by Hylke Bons
parent c9db4e4e44
commit 5a7da4f526

View file

@ -36,8 +36,9 @@ namespace SparkleShare {
{ {
string xml = ""; string xml = "";
url = url.Replace ("sparkleshare-unsafe:", "http:"); // Windows sometimes doesn't strip off protocol handlers
url = url.Replace ("sparkleshare:", "https:"); url = url.Replace ("sparkleshare-unsafe:", "");
url = url.Replace ("sparkleshare:", "");
WebClient web_client = new WebClient (); WebClient web_client = new WebClient ();