Commit graph

16 commits

Author SHA1 Message Date
Jaex 3425e167db Move few classes to parent folder 2016-06-28 23:57:34 +03:00
Jaex cb7a621b73 Replace all string.Empty with "" 2016-05-24 21:15:45 +03:00
Jaex 8f02ec41dc Base uploaders and services moved to their own folders, removed unused references, renamed HelperClasses to Helpers 2016-03-23 21:05:31 +02:00
Jaex 1d0842d031 Updated license year to 2016 2016-01-03 17:16:01 +02:00
Jaex 251849aeda Copyright text update 2015-08-13 04:07:38 +03:00
Jaex 26712fd4da fixed #656: Removed FTP ServerProtocol setting instead FTPAddress will use it automatically depending on protocol 2015-05-02 13:57:33 +03:00
Leo Lam 519be3437e Fix issue #436
httpHomeUri.Uri.AbsoluteUri; returns the encoded Uri including the query
portion of it without double encoding the file name. This will return
properly encode non-ascii paths as described in #371.
2015-01-12 14:14:52 -05:00
Leo Lam e9e5b14e75 Revert back to using URLHelpers.URLEncode
Revert back to using URLHelpers.URLEncode instead of
HTTPUtility.UrlEncode.
2015-01-12 02:31:33 -05:00
Leo Lam 166e4bd126 Fix issue #436
```
return Uri.EscapeUriString(httpHomeUri.Uri.ToString());
```
This return statement was double encoding filename hence the extra
encoding on the "%" sign in the URL in clipboard.

filename is first encoded in this line:

```
httpHomeUri = new UriBuilder(URLHelpers.CombineURL(host, subFolderPath,
filename));
```
2015-01-12 01:48:24 -05:00
luis.gomez 17b8291113 Fix issue #372
Several changes were made to fix the encoding of ftp dirpaths and allow
uploads to folders with non-ascii characters:

-Fixed encoding of valid urls in ShareX.HelpersLib.NameParser.cs
-Fixed subfolder path generation and wrong url re-encoding in
FTPAccount.cs
-Fixed preview paths in FTP Destination settings (FTPAccount.cs)
-Fixed subfolder path generation in FTP.cs

This fixes issue #372, which was reproduced with the following account
config on a local ftp server (import from clipboard on destination
settings):

{
"Protocol": "FTP",
"Name": "New account",
"Host": "localhost",
"Port": 21,
"Username": "test",
"Password": "test",
"ServerProtocol": "ftp",
"SubFolderPath": "DEV/grhh本人%",
"BrowserProtocol": "http",
"HttpHomePath": "",
"HttpHomePathAutoAddSubFolderPath": true,
"HttpHomePathNoExtension": false,
"IsActive": false,
"FTPSEncryption": "Explicit",
"FTPSCertificateLocation": "",
"Passphrase": null,
"Keypath": null
}
2015-01-01 18:44:18 -03:00
Jaex e770e8600f Changing copyright icon 2014-12-31 11:41:32 +02:00
Jaex 9388ebb418 Updated year 2014-12-31 11:29:40 +02:00
SolidX d101541e74 Fixes incorrect default port when an httpHomePath is not specified for an FTP Account. (See discussion on #330). 2014-12-31 03:46:28 -05:00
Jaex 0eefbc19f8 CodeMaid cleanup 2014-12-11 01:19:28 +02:00
Jaex d5b1d287fb Changed namespaces too 2014-12-10 22:25:20 +02:00
Jaex 5096a895f1 Changed project namings (Example: HelpersLib -> ShareX.HelpersLib) 2014-12-10 22:11:55 +02:00
Renamed from UploadersLib/FileUploaders/FTP/FTPAccount.cs (Browse further)