Don't include the 'username:password' portion of the URL when generating SparkleShare.txt. Closes #907

This commit is contained in:
Hylke Bons 2012-08-16 09:50:35 +01:00
parent 7d438a78fa
commit de67786f71

View file

@ -200,10 +200,17 @@ namespace SparkleLib {
string file_path = Path.Combine (TargetFolder, "SparkleShare.txt");
string n = Environment.NewLine;
UriBuilder uri_builder = new UriBuilder (RemoteUrl);
if (RemoteUrl.Scheme.StartsWith ("http")) {
uri_builder.UserName = "";
uri_builder.Password = "";
}
string text = "Congratulations, you've successfully created a SparkleShare repository!" + n +
n +
"Any files you add or change in this folder will be automatically synced to " + n +
RemoteUrl + " and everyone connected to it." + n +
uri_builder.ToString () + " and everyone connected to it." + n +
n +
"SparkleShare is an Open Source software program that helps people " + n +
"collaborate and share files. If you like what we do, please consider a small " + n +