mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
fixed #575: Hastebin allow no extension
This commit is contained in:
parent
4c5db0d73c
commit
e3b745e843
1 changed files with 3 additions and 7 deletions
|
@ -58,18 +58,14 @@ public override UploadResult UploadText(string text, string fileName)
|
||||||
|
|
||||||
if (response != null && !string.IsNullOrEmpty(response.Key))
|
if (response != null && !string.IsNullOrEmpty(response.Key))
|
||||||
{
|
{
|
||||||
string syntaxHighlighting;
|
string url = URLHelpers.CombineURL(domain, response.Key);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(SyntaxHighlighting))
|
if (!string.IsNullOrEmpty(SyntaxHighlighting))
|
||||||
{
|
{
|
||||||
syntaxHighlighting = SyntaxHighlighting;
|
url += "." + SyntaxHighlighting;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
syntaxHighlighting = "hs";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ur.URL = URLHelpers.CombineURL(domain, response.Key + "." + syntaxHighlighting);
|
ur.URL = url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue