windows: somewhat fix invite code. #911

This commit is contained in:
Hylke Bons 2012-08-16 20:16:12 +01:00
parent de67786f71
commit f670c084a4

View file

@ -35,6 +35,9 @@ namespace SparkleShare {
public SparkleInviteOpen (string url)
{
string xml = "";
url = url.Replace ("sparkleshare-unsafe:", "http:");
url = url.Replace ("sparkleshare:", "https:");
WebClient web_client = new WebClient ();
@ -48,7 +51,7 @@ namespace SparkleShare {
string file_name = DateTime.UtcNow.Millisecond.ToString () + ".xml";
string home_path = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
string home_path = Environment.GetFolderPath (Environment.SpecialFolder.UserProfile);
string target_path = Path.Combine (home_path, "SparkleShare", file_name);
if (xml.Contains ("<sparkleshare>")) {