From 85be2aa98eb254da03abd479f0334bd228f145ce Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Feb 2024 19:48:30 +0100 Subject: [PATCH] Add dol_escape_htmltag --- htdocs/document.php | 2 +- .../websites/website_template-corporate/containers/wrapper.php | 2 +- .../website_template-homesubmenu/containers/wrapper.php | 2 +- .../websites/website_template-noimg/containers/wrapper.php | 2 +- .../website_template-onepageblackpurple/containers/wrapper.php | 2 +- .../websites/website_template-restaurant/containers/wrapper.php | 2 +- .../websites/website_template-stellar/containers/wrapper.php | 2 +- htdocs/website/samples/wrapper.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/document.php b/htdocs/document.php index aac76610145..f1d3c187ce1 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -275,7 +275,7 @@ $fullpath_original_file_osencoded = dol_osencode($fullpath_original_file); // Ne // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { dol_syslog("ErrorFileDoesNotExists: ".$fullpath_original_file); - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/install/doctemplates/websites/website_template-corporate/containers/wrapper.php b/htdocs/install/doctemplates/websites/website_template-corporate/containers/wrapper.php index 5fa68853d05..e2d47656da1 100644 --- a/htdocs/install/doctemplates/websites/website_template-corporate/containers/wrapper.php +++ b/htdocs/install/doctemplates/websites/website_template-corporate/containers/wrapper.php @@ -251,7 +251,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/install/doctemplates/websites/website_template-homesubmenu/containers/wrapper.php b/htdocs/install/doctemplates/websites/website_template-homesubmenu/containers/wrapper.php index 5fa68853d05..e2d47656da1 100644 --- a/htdocs/install/doctemplates/websites/website_template-homesubmenu/containers/wrapper.php +++ b/htdocs/install/doctemplates/websites/website_template-homesubmenu/containers/wrapper.php @@ -251,7 +251,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/install/doctemplates/websites/website_template-noimg/containers/wrapper.php b/htdocs/install/doctemplates/websites/website_template-noimg/containers/wrapper.php index 5fa68853d05..e2d47656da1 100644 --- a/htdocs/install/doctemplates/websites/website_template-noimg/containers/wrapper.php +++ b/htdocs/install/doctemplates/websites/website_template-noimg/containers/wrapper.php @@ -251,7 +251,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/install/doctemplates/websites/website_template-onepageblackpurple/containers/wrapper.php b/htdocs/install/doctemplates/websites/website_template-onepageblackpurple/containers/wrapper.php index 5fa68853d05..e2d47656da1 100644 --- a/htdocs/install/doctemplates/websites/website_template-onepageblackpurple/containers/wrapper.php +++ b/htdocs/install/doctemplates/websites/website_template-onepageblackpurple/containers/wrapper.php @@ -251,7 +251,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/install/doctemplates/websites/website_template-restaurant/containers/wrapper.php b/htdocs/install/doctemplates/websites/website_template-restaurant/containers/wrapper.php index 5fa68853d05..e2d47656da1 100644 --- a/htdocs/install/doctemplates/websites/website_template-restaurant/containers/wrapper.php +++ b/htdocs/install/doctemplates/websites/website_template-restaurant/containers/wrapper.php @@ -251,7 +251,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/install/doctemplates/websites/website_template-stellar/containers/wrapper.php b/htdocs/install/doctemplates/websites/website_template-stellar/containers/wrapper.php index 91b7a0a2c7c..4ca5fbf8ba9 100644 --- a/htdocs/install/doctemplates/websites/website_template-stellar/containers/wrapper.php +++ b/htdocs/install/doctemplates/websites/website_template-stellar/containers/wrapper.php @@ -222,7 +222,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; } diff --git a/htdocs/website/samples/wrapper.php b/htdocs/website/samples/wrapper.php index 631f27881aa..87db681d8d3 100644 --- a/htdocs/website/samples/wrapper.php +++ b/htdocs/website/samples/wrapper.php @@ -252,7 +252,7 @@ if ($rss) { // This test if file exists should be useless. We keep it to find bug more easily if (!file_exists($fullpath_original_file_osencoded)) { - print "ErrorFileDoesNotExists: ".$original_file; + print "ErrorFileDoesNotExists: ".dol_escape_htmltag($original_file); exit; }