From 79aa8cccc3f75cb6f39cdb7aea5f6650f79955f2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 19 May 2025 10:50:09 +0100 Subject: [PATCH] Check for php extension --- daemon_get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon_get.py b/daemon_get.py index c819ec7c9..4b1049a16 100644 --- a/daemon_get.py +++ b/daemon_get.py @@ -305,7 +305,7 @@ def daemon_http_get(self) -> None: return # php - if 'index.php' in self.path: + if self.path.endswith('.php'): print('GET HTTP Attempt to access PHP file ' + self.path) http_404(self, 145) return