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

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