fixed #575: Hastebin allow no extension

This commit is contained in:
Jaex 2015-03-30 08:04:39 +03:00
parent 4c5db0d73c
commit e3b745e843

View file

@ -58,18 +58,14 @@ public override UploadResult UploadText(string text, string fileName)
if (response != null && !string.IsNullOrEmpty(response.Key))
{
string syntaxHighlighting;
string url = URLHelpers.CombineURL(domain, response.Key);
if (!string.IsNullOrEmpty(SyntaxHighlighting))
{
syntaxHighlighting = SyntaxHighlighting;
}
else
{
syntaxHighlighting = "hs";
url += "." + SyntaxHighlighting;
}
ur.URL = URLHelpers.CombineURL(domain, response.Key + "." + syntaxHighlighting);
ur.URL = url;
}
}
}