Check for php extension

main
Bob Mottram 2025-05-19 10:50:09 +01:00
parent ddc202dd01
commit 79aa8cccc3
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ def daemon_http_get(self) -> None:
return return
# php # php
if 'index.php' in self.path: if self.path.endswith('.php'):
print('GET HTTP Attempt to access PHP file ' + self.path) print('GET HTTP Attempt to access PHP file ' + self.path)
http_404(self, 145) http_404(self, 145)
return return