windows: somewhat fix invite code. #911
This commit is contained in:
parent
02f23e39a3
commit
eab2ce5846
|
@ -36,6 +36,9 @@ namespace SparkleShare {
|
|||
{
|
||||
string xml = "";
|
||||
|
||||
url = url.Replace ("sparkleshare-unsafe:", "http:");
|
||||
url = url.Replace ("sparkleshare:", "https:");
|
||||
|
||||
WebClient web_client = new WebClient ();
|
||||
|
||||
try {
|
||||
|
@ -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>")) {
|
||||
|
|
Loading…
Reference in a new issue