From 44caac5cec1d0dd9dc89c4d7c7ebc0bfeda2ccf7 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 14 May 2020 18:25:52 +0800 Subject: [PATCH] Update common.php --- common.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.php b/common.php index 60f61bd..e1f1ffb 100644 --- a/common.php +++ b/common.php @@ -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']) );