Add new Kepler syntax commit to Civetweb-related patch series

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-22 19:13:17 +02:00
parent 19efd3e2e1
commit a02f4eb42a
2 changed files with 32 additions and 0 deletions

View File

@@ -3,5 +3,6 @@ set -e
patch -p1 < patch/civetweb/0001-add-pihole-mods.patch
patch -p1 < patch/civetweb/0001-Add-NO_DLOPEN-option-to-civetweb-s-LUA-routines.patch
patch -p1 < patch/civetweb/0001-Always-Kepler-syntax-for-Lua-server-pages.patch
echo "ALL PATCHES APPLIED OKAY"

View File

@@ -0,0 +1,31 @@
From 19efd3e2e10858b549404e6cae97c20337aafb0b Mon Sep 17 00:00:00 2001
From: DL6ER <dl6er@dl6er.de>
Date: Mon, 22 May 2023 19:11:44 +0200
Subject: [PATCH] Always Kepler syntax for Lua server pages
Signed-off-by: DL6ER <dl6er@dl6er.de>
---
src/webserver/civetweb/mod_lua.inl | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/webserver/civetweb/mod_lua.inl b/src/webserver/civetweb/mod_lua.inl
index 26f281ee..e9a13835 100644
--- a/src/webserver/civetweb/mod_lua.inl
+++ b/src/webserver/civetweb/mod_lua.inl
@@ -3208,10 +3208,9 @@ handle_lsp_request(struct mg_connection *conn,
* "<?" which means "classic CivetWeb Syntax".
*
*/
- run_lsp = run_lsp_civetweb;
- if ((addr[0] == '<') && (addr[1] != '?')) {
- run_lsp = run_lsp_kepler;
- }
+
+ // Pi-hole change: Always use Kepler syntax, ignore rules above
+ run_lsp = run_lsp_kepler;
/* We're not sending HTTP headers here, Lua page must do it. */
error =
--
2.34.1