feat: sh cgi ext
This commit is contained in:
parent
1ef4adc3d8
commit
57c56b12e7
@ -17,7 +17,7 @@ CgiExtValidationRule::CgiExtValidationRule(bool requiresValue)
|
||||
|
||||
bool isAllowedCGIExtension(const std::string &extension)
|
||||
{
|
||||
static const std::vector<std::string> allowedExtensions = {".php", ".py", ".bla"};
|
||||
static const std::vector<std::string> allowedExtensions = {".php", ".py", ".bla", ".sh"};
|
||||
return std::ranges::any_of(allowedExtensions, [&extension](const auto &it) { return extension == it; });
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user