diff --git a/common.php b/common.php
index f9d8b9a..a10fcf5 100644
--- a/common.php
+++ b/common.php
@@ -1727,8 +1727,7 @@ function get_refresh_token()
', 'Error', 201);
+ } elseif (!(('a'<=$f && $f<='z') || ('A'<=$f && $f<='Z'))) {
+ return message('Please start with letters');
+ } else {
+ $tmp[$k] = $v;
+ }
+ }
+ if ($k=='disktag_sort') {
+ $td = implode('|', json_decode($v));
+ if (strlen($td)==strlen(getConfig('disktag'))) $tmp['disktag'] = $td;
+ else return message('Something wrong.');
+ }
if ($k == 'disk') $_SERVER['disk_oprating'] = $v;
}
/*if ($tmp['domain_path']!='') {
@@ -1817,7 +1837,6 @@ function EnvOpt($needUpdate = 0)
$html = api_error_msg($response);
$title = 'Error';
} else {
- //WaitSCFStat();
$html .= getconstStr('Success') . '!
';
$title = getconstStr('Setup');
@@ -1896,18 +1915,102 @@ function EnvOpt($needUpdate = 0)