diff --git a/common.php b/common.php
index d78518e..429685e 100644
--- a/common.php
+++ b/common.php
@@ -1086,11 +1086,12 @@ function EnvOpt($needUpdate = 0)
$v = preg_replace('/[^0-9a-zA-Z|_]/i', '', $v);
$f = substr($v, 0, 1);
if (strlen($v)==1) $v .= '_';
- //if (in_array($v, $CommonEnv)) {
if (isCommonEnv($v)) {
- return message('Do not input ' . $envs . '
', 'Error', 201);
+ return message('Do not input ' . $envs . '
', 'Error', 201);
} elseif (!(('a'<=$f && $f<='z') || ('A'<=$f && $f<='Z'))) {
- return message('Please start with letters');
+ return message('', 'Please start with letters', 201);
+ } elseif (getConfig($v)) {
+ return message('', 'Same tag', 201);
} else {
$tmp[$k] = $v;
}