monkeyDluffy6017 commented on code in PR #9194:
URL: https://github.com/apache/apisix/pull/9194#discussion_r1178953208
##########
apisix/plugins/proxy-rewrite.lua:
##########
@@ -191,11 +188,16 @@ function _M.check_schema(conf)
end
if conf.regex_uri and #conf.regex_uri > 0 then
- local _, _, err = re_sub("/fake_uri", conf.regex_uri[1],
- conf.regex_uri[2], "jo")
- if err then
- return false, "invalid regex_uri(" .. conf.regex_uri[1] ..
- ", " .. conf.regex_uri[2] .. "): " .. err
+ if (#conf.regex_uri % 2 ~= 0) then
+ return false, "length of regex_uri should be a even number"
Review Comment:
The length of regex_uri should be an even number
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]