onedrive: remove % and # from the set of encoded characters (#4909)

onedrive: remove % and # from the set of encoded characters

This fixes #4700, fixes #4184, fixes #2920.
This commit is contained in:
Alex Chen 2021-01-08 20:07:17 +08:00 committed by GitHub
parent e775328523
commit 78a76b0d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -345,8 +345,6 @@ At the time of writing this only works with OneDrive personal paid accounts.
// | (vertical line) -> '' // FULLWIDTH VERTICAL LINE // | (vertical line) -> '' // FULLWIDTH VERTICAL LINE
// ? (question mark) -> '' // FULLWIDTH QUESTION MARK // ? (question mark) -> '' // FULLWIDTH QUESTION MARK
// * (asterisk) -> '' // FULLWIDTH ASTERISK // * (asterisk) -> '' // FULLWIDTH ASTERISK
// # (number sign) -> '' // FULLWIDTH NUMBER SIGN
// % (percent sign) -> '' // FULLWIDTH PERCENT SIGN
// //
// Folder names cannot begin with a tilde ('~') // Folder names cannot begin with a tilde ('~')
// List of replaced characters: // List of replaced characters:
@ -371,7 +369,6 @@ At the time of writing this only works with OneDrive personal paid accounts.
// https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/addressing-driveitems?view=odsp-graph-online#path-encoding // https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/addressing-driveitems?view=odsp-graph-online#path-encoding
Default: (encoder.Display | Default: (encoder.Display |
encoder.EncodeBackSlash | encoder.EncodeBackSlash |
encoder.EncodeHashPercent |
encoder.EncodeLeftSpace | encoder.EncodeLeftSpace |
encoder.EncodeLeftTilde | encoder.EncodeLeftTilde |
encoder.EncodeRightPeriod | encoder.EncodeRightPeriod |

View File

@ -163,8 +163,6 @@ the following characters are also replaced:
| ? | 0x3F | | | ? | 0x3F | |
| \ | 0x5C | | | \ | 0x5C | |
| \| | 0x7C | | | \| | 0x7C | |
| # | 0x23 | |
| % | 0x25 | |
File names can also not end with the following characters. File names can also not end with the following characters.
These only get replaced if they are the last character in the name: These only get replaced if they are the last character in the name: