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('