Windows sometimes strips protocol when url is passed to handler
Conflicts: SparkleShare/Windows/SparkleShareInviteOpener/sparkleshare-invite-opener.cs
This commit is contained in:
parent
c9db4e4e44
commit
5a7da4f526
|
@ -35,9 +35,10 @@ namespace SparkleShare {
|
||||||
public SparkleInviteOpen (string url)
|
public SparkleInviteOpen (string url)
|
||||||
{
|
{
|
||||||
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 ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue