From fabe2f1ec7962c97759528ec8e187f21720422c8 Mon Sep 17 00:00:00 2001 From: mix5003 Date: Sat, 30 Oct 2021 20:22:55 +0700 Subject: [PATCH 1/5] fix incorrect v_ssl field name --- src/react/src/components/WebDomain/Edit/EditWeb.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/src/components/WebDomain/Edit/EditWeb.jsx b/src/react/src/components/WebDomain/Edit/EditWeb.jsx index 113d60077..7732997ac 100644 --- a/src/react/src/components/WebDomain/Edit/EditWeb.jsx +++ b/src/react/src/components/WebDomain/Edit/EditWeb.jsx @@ -202,7 +202,7 @@ const EditWeb = props => { From b539119eade164465e91e2448cd21951f4a87c59 Mon Sep 17 00:00:00 2001 From: mix5003 Date: Sat, 30 Oct 2021 20:41:31 +0700 Subject: [PATCH 2/5] fix incorrect field name --- src/react/src/components/WebDomain/Edit/EditWeb.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/react/src/components/WebDomain/Edit/EditWeb.jsx b/src/react/src/components/WebDomain/Edit/EditWeb.jsx index 7732997ac..d119d8c00 100644 --- a/src/react/src/components/WebDomain/Edit/EditWeb.jsx +++ b/src/react/src/components/WebDomain/Edit/EditWeb.jsx @@ -158,7 +158,7 @@ const EditWeb = props => { id="proxy-aliases" name="v_aliases" title={i18n['Aliases']} - value={state.data.aliases} /> + defaultValue={state.data.aliases} /> { sslPubKey={state.data.ssl_pub_key} sslIssuer={state.data.ssl_issuer} sslCertificate={state.data.ssl_crt} - sslKey={state.data.key} - sslCertificateAuthority={state.data.ca} + sslKey={state.data.ssl_key} + sslCertificateAuthority={state.data.ssl_ca} domain={state.domain} sslHome={state.data.ssl_home} letsEncrypt={state.letsEncrypt} From 57401060c8ba0086b66a537660e7434a8f6b654f Mon Sep 17 00:00:00 2001 From: mix5003 Date: Sat, 30 Oct 2021 21:05:45 +0700 Subject: [PATCH 3/5] fix can not edit proxy template --- bin/v-change-web-domain-proxy-tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-change-web-domain-proxy-tpl b/bin/v-change-web-domain-proxy-tpl index 4d022cb9d..e92cf2467 100755 --- a/bin/v-change-web-domain-proxy-tpl +++ b/bin/v-change-web-domain-proxy-tpl @@ -42,7 +42,7 @@ is_object_valid 'user' 'USER' "$user" is_object_unsuspended 'user' 'USER' "$user" is_object_valid 'web' 'DOMAIN' "$domain" is_object_unsuspended 'web' 'DOMAIN' "$domain" -is_object_value_exist 'web' 'DOMAIN' "$domain" '$PROXY' +is_object_value_exist 'web' 'DOMAIN' "$domain" 'PROXY' is_proxy_template_valid $template From 43a6fc23ef792ad51ed759c58531be5041f51970 Mon Sep 17 00:00:00 2001 From: mix5003 Date: Sat, 30 Oct 2021 21:28:08 +0700 Subject: [PATCH 4/5] 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']); From 335fd746dbfafe065a5c99b4d1d46d637bb53079 Mon Sep 17 00:00:00 2001 From: mix5003 Date: Sat, 30 Oct 2021 21:54:23 +0700 Subject: [PATCH 5/5] fix ca name --- .../src/components/WebDomain/Edit/SslSupport/SslSupport.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/react/src/components/WebDomain/Edit/SslSupport/SslSupport.jsx b/src/react/src/components/WebDomain/Edit/SslSupport/SslSupport.jsx index dbf9ef264..ba1672fd6 100644 --- a/src/react/src/components/WebDomain/Edit/SslSupport/SslSupport.jsx +++ b/src/react/src/components/WebDomain/Edit/SslSupport/SslSupport.jsx @@ -56,8 +56,8 @@ const SslSupport = props => { title={i18n['SSL Key']} />