From 1824feabc737b7d1a8e0082a23c5528721a946fa Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 30 Oct 2020 16:47:38 +0800 Subject: [PATCH] fix: sharepoint site name non-english --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 88e4afe..319cf6c 100644 --- a/common.php +++ b/common.php @@ -652,7 +652,7 @@ function get_siteid($access_token) $sharepointSiteAddress = getConfig('sharepointSiteAddress'); while (substr($sharepointSiteAddress, -1)=='/') $sharepointSiteAddress = substr($sharepointSiteAddress, 0, -1); $tmp = splitlast($sharepointSiteAddress, '/'); - $sharepointname = $tmp[1]; + $sharepointname = urlencode($tmp[1]); $tmp = splitlast($tmp[0], '/'); $sharepointname = $tmp[1] . '/' . $sharepointname; if (getConfig('Drive_ver')=='MS') $url = 'https://graph.microsoft.com/v1.0/sites/root:/'.$sharepointname;