Downgrade misc_nginx_check_regex_in_location from Warning to Info

This commit is contained in:
OniriCorpe 2024-02-21 01:37:29 +01:00 committed by GitHub
parent 61213c1bb4
commit 037e527971
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1448,7 +1448,7 @@ class Configurations(TestSuite):
cmd = 'grep -q -IhEro "location ~ __PATH__" %s' % (app.path + "/conf/" + filename) cmd = 'grep -q -IhEro "location ~ __PATH__" %s' % (app.path + "/conf/" + filename)
if os.system(cmd) != 0: if os.system(cmd) != 0:
yield Warning( yield Info(
"When using regexp in the nginx location field (location ~ __PATH__), start the path with ^ (location ~ ^__PATH__)." "When using regexp in the nginx location field (location ~ __PATH__), start the path with ^ (location ~ ^__PATH__)."
) )