You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sh...@apache.org on 2021/05/14 22:24:20 UTC
[apisix] branch master updated: fix: avoid 'using uninitialized
"from_error_page" variable' (#4253)
This is an automated email from the ASF dual-hosted git repository.
shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 5a1fa27 fix: avoid 'using uninitialized "from_error_page" variable' (#4253)
5a1fa27 is described below
commit 5a1fa2784e0f6511da75018a48b85fd9ebc5a1cf
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Sat May 15 06:24:08 2021 +0800
fix: avoid 'using uninitialized "from_error_page" variable' (#4253)
Signed-off-by: spacewander <sp...@gmail.com>
---
apisix/cli/ngx_tpl.lua | 1 +
t/APISIX.pm | 1 +
2 files changed, 2 insertions(+)
diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua
index 041a2d6..d0c3b32 100644
--- a/apisix/cli/ngx_tpl.lua
+++ b/apisix/cli/ngx_tpl.lua
@@ -502,6 +502,7 @@ http {
set $upstream_host $http_host;
set $upstream_uri '';
set $ctx_ref '';
+ set $from_error_page '';
{% if enabled_plugins["dubbo-proxy"] then %}
set $dubbo_service_name '';
diff --git a/t/APISIX.pm b/t/APISIX.pm
index 68821bd..388ade9 100644
--- a/t/APISIX.pm
+++ b/t/APISIX.pm
@@ -554,6 +554,7 @@ _EOC_
set \$upstream_host \$http_host;
set \$upstream_uri '';
set \$ctx_ref '';
+ set \$from_error_page '';
set \$upstream_cache_zone off;
set \$upstream_cache_key '';