mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Fixes incorrect default port when an httpHomePath is not specified for an FTP Account. (See discussion on #330).
This commit is contained in:
parent
dfc722b7a5
commit
d101541e74
|
@ -190,6 +190,7 @@ public string GetUriPath(string filename, string subFolderPath = null)
|
||||||
}
|
}
|
||||||
|
|
||||||
httpHomeUri = new UriBuilder(URLHelpers.CombineURL(host, subFolderPath, filename));
|
httpHomeUri = new UriBuilder(URLHelpers.CombineURL(host, subFolderPath, filename));
|
||||||
|
httpHomeUri.Port = -1; //Since httpHomePath is not set, it's safe to erase UriBuilder's assumed port number
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue