From 78a76b0d2992b2867af2023ab60bd42a08b57c2e Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Fri, 8 Jan 2021 20:07:17 +0800 Subject: [PATCH] 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. --- backend/onedrive/onedrive.go | 3 --- docs/content/onedrive.md | 2 -- 2 files changed, 5 deletions(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index a98bdb3ce..228b9d7d4 100755 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -345,8 +345,6 @@ At the time of writing this only works with OneDrive personal paid accounts. // | (vertical line) -> '|' // FULLWIDTH VERTICAL LINE // ? (question mark) -> '?' // FULLWIDTH QUESTION MARK // * (asterisk) -> '*' // FULLWIDTH ASTERISK - // # (number sign) -> '#' // FULLWIDTH NUMBER SIGN - // % (percent sign) -> '%' // FULLWIDTH PERCENT SIGN // // Folder names cannot begin with a tilde ('~') // 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 Default: (encoder.Display | encoder.EncodeBackSlash | - encoder.EncodeHashPercent | encoder.EncodeLeftSpace | encoder.EncodeLeftTilde | encoder.EncodeRightPeriod | diff --git a/docs/content/onedrive.md b/docs/content/onedrive.md index ef2d0180b..902c680b9 100644 --- a/docs/content/onedrive.md +++ b/docs/content/onedrive.md @@ -163,8 +163,6 @@ the following characters are also replaced: | ? | 0x3F | ? | | \ | 0x5C | \ | | \| | 0x7C | | | -| # | 0x23 | # | -| % | 0x25 | % | File names can also not end with the following characters. These only get replaced if they are the last character in the name: