From 43a6fc23ef792ad51ed759c58531be5041f51970 Mon Sep 17 00:00:00 2001 From: mix5003 Date: Sat, 30 Oct 2021 21:28:08 +0700 Subject: [PATCH] fix can not save proxy template --- web/api/v1/edit/web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/v1/edit/web/index.php b/web/api/v1/edit/web/index.php index eb880edf6..884fd3f35 100644 --- a/web/api/v1/edit/web/index.php +++ b/web/api/v1/edit/web/index.php @@ -260,7 +260,7 @@ if (!empty($_POST['save'])) { } // Add proxy support - if ((!empty($_SESSION['PROXY_SYSTEM'])) && (empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg']))) { + if ((!empty($_SESSION['PROXY_SYSTEM'])) && (empty($v_proxy)) && (!empty($_POST['v_proxy_template'])) && (empty($_SESSION['error_msg']))) { $v_proxy_template = $_POST['v_proxy_template']; if (!empty($_POST['v_proxy_ext'])) { $ext = preg_replace("/\n/", " ", $_POST['v_proxy_ext']);