Update common.php

This commit is contained in:
qkqpttgf 2020-05-14 18:25:52 +08:00 committed by GitHub
parent 902488ebd0
commit 44caac5cec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1378,10 +1378,17 @@ function get_refresh_token()
$tmp['Drive_custom'] = $_POST['Drive_custom'];
$tmp['client_id'] = $_POST['client_id'];
$tmp['client_secret'] = $_POST['client_secret'];
} else {
$tmp['Drive_custom'] = '';
$tmp['client_id'] = '';
$tmp['client_secret'] = '';
}
if ($_POST['usesharepoint']=='on') {
$tmp['usesharepoint'] = $_POST['usesharepoint'];
$tmp['sharepointSiteAddress'] = $_POST['sharepointSiteAddress'];
} else {
$tmp['usesharepoint'] = '';
$tmp['sharepointSiteAddress'] = '';
}
}
$response = setConfigResponse( setConfig($tmp, $_COOKIE['disktag']) );