[fix] Remove SSO DEBUG

This commit is contained in:
ljf (zamentur) 2019-10-28 00:52:03 +01:00 committed by GitHub
parent 8433de3fe2
commit f92ab60b39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,6 @@ ngx.header["X-SSO-WAT"] = "You've just been SSOed"
-- Quick fix for CVE-2019-11043 about php-fpm and nginx
local loweruri = string.lower(ngx.var.uri)
ngx.header["X-SSO-DEBUG"] = loweruri
if string.match(loweruri, "\n") or string.match(loweruri, "\r") then
return ngx.exit(ngx.HTTP_FORBIDDEN)
end