From 57c56b12e7e183521397ddb41ee250ef2af768b9 Mon Sep 17 00:00:00 2001 From: Quinten Date: Wed, 29 Oct 2025 16:54:46 +0100 Subject: [PATCH] feat: sh cgi ext --- .../config/validation/directive_rules/CgiExtValidationRule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserv/config/validation/directive_rules/CgiExtValidationRule.cpp b/webserv/config/validation/directive_rules/CgiExtValidationRule.cpp index 6cc041b..f9858c2 100644 --- a/webserv/config/validation/directive_rules/CgiExtValidationRule.cpp +++ b/webserv/config/validation/directive_rules/CgiExtValidationRule.cpp @@ -17,7 +17,7 @@ CgiExtValidationRule::CgiExtValidationRule(bool requiresValue) bool isAllowedCGIExtension(const std::string &extension) { - static const std::vector allowedExtensions = {".php", ".py", ".bla"}; + static const std::vector allowedExtensions = {".php", ".py", ".bla", ".sh"}; return std::ranges::any_of(allowedExtensions, [&extension](const auto &it) { return extension == it; }); }