fix: sharepoint site name non-english

pull/139/head
qkqpttgf 2020-10-30 16:47:38 +08:00 committed by GitHub
parent 375fa49035
commit 1824feabc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -652,7 +652,7 @@ function get_siteid($access_token)
$sharepointSiteAddress = getConfig('sharepointSiteAddress'); $sharepointSiteAddress = getConfig('sharepointSiteAddress');
while (substr($sharepointSiteAddress, -1)=='/') $sharepointSiteAddress = substr($sharepointSiteAddress, 0, -1); while (substr($sharepointSiteAddress, -1)=='/') $sharepointSiteAddress = substr($sharepointSiteAddress, 0, -1);
$tmp = splitlast($sharepointSiteAddress, '/'); $tmp = splitlast($sharepointSiteAddress, '/');
$sharepointname = $tmp[1]; $sharepointname = urlencode($tmp[1]);
$tmp = splitlast($tmp[0], '/'); $tmp = splitlast($tmp[0], '/');
$sharepointname = $tmp[1] . '/' . $sharepointname; $sharepointname = $tmp[1] . '/' . $sharepointname;
if (getConfig('Drive_ver')=='MS') $url = 'https://graph.microsoft.com/v1.0/sites/root:/'.$sharepointname; if (getConfig('Drive_ver')=='MS') $url = 'https://graph.microsoft.com/v1.0/sites/root:/'.$sharepointname;