From 2cf7b43f9efc83b6f82b0bc78eadc063aed4a8ae Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Tue, 28 Jan 2025 19:18:06 +0100 Subject: [PATCH] Fix update manifest json --- htdocs/website/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index bb683e00854..f4c758417a7 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -3936,8 +3936,10 @@ if ($action == 'editcss') { // Clean the manifestjson file to remove php code and get only html part $manifestjsoncontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims', '', $manifestjsoncontent); } else { - $manifestjsoncontent = GETPOST('WEBSITE_MANIFEST_JSON', 'restricthtml'); + $manifestjsoncontent = trim(GETPOST('WEBSITE_MANIFEST_JSON', 'restricthtmlallowunvalid')); + $manifestjsoncontent = str_replace('