Windows sometimes strips protocol when url is passed to handler
Conflicts: SparkleShare/Windows/SparkleShareInviteOpener/sparkleshare-invite-opener.cs
This commit is contained in:
parent
42b792b503
commit
425cffb74b
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue