summaryrefslogtreecommitdiff
path: root/src/CGIScript.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-09-20 11:08:11 -0600
committercflip <cflip@cflip.net>2022-09-20 11:10:47 -0600
commitce173bd3d1c66f937a958419a2c82786404e0d2e (patch)
tree3a3ae72125c42ade78ee29e14009dd612713772e /src/CGIScript.h
parent08a43acee041e6de83c5b9e8c16265fa2de0983e (diff)
Validate CGI script paths before starting up the server
This still doesn't throw up an error when attepting to run scripts without the leading './', but it's a start
Diffstat (limited to 'src/CGIScript.h')
-rw-r--r--src/CGIScript.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CGIScript.h b/src/CGIScript.h
index a3e40fd..3ac00d9 100644
--- a/src/CGIScript.h
+++ b/src/CGIScript.h
@@ -14,6 +14,8 @@ public:
std::string read_output();
+ static void validate_path(const std::string& path);
+
private:
FILE* m_pipe {};
const std::string& m_script_path;