feat: sh cgi ext

This commit is contained in:
Quinten 2025-10-29 16:54:46 +01:00
parent 1ef4adc3d8
commit 57c56b12e7

View File

@ -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; });
}