diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index cd2b6089c..8b908fd47 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -537,7 +537,7 @@ def setSessionConf(version): passwd = args['passwd'] save_handler = args['save_handler'] - if save_handler != "file": + if save_handler != "files": iprep = r"(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})" if not re.search(iprep, ip): return mw.returnJson(False, '请输入正确的IP地址') diff --git a/plugins/php-yum/index.py b/plugins/php-yum/index.py index 3c5896d62..a9a482767 100755 --- a/plugins/php-yum/index.py +++ b/plugins/php-yum/index.py @@ -539,7 +539,7 @@ def setSessionConf(version): passwd = args['passwd'] save_handler = args['save_handler'] - if save_handler != "file": + if save_handler != "files": iprep = r"(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})" if not re.search(iprep, ip): return mw.returnJson(False, '请输入正确的IP地址') diff --git a/plugins/php/index.py b/plugins/php/index.py index 5a83665c3..56df07488 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -679,7 +679,7 @@ def setSessionConf(version): passwd = args['passwd'] save_handler = args['save_handler'] - if save_handler != "file": + if save_handler != "files": iprep = r"(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})" if not re.search(iprep, ip): return mw.returnJson(False, '请输入正确的IP地址')