From 07455b5eda90a3f3ae095979e408ceadce5a0625 Mon Sep 17 00:00:00 2001 From: varun kewlani Date: Tue, 4 Aug 2026 14:49:11 +0530 Subject: [PATCH] Added validation for child features in hotel Co-authored-by: Sumit --- .../controllers/admin/AdminHotelfeaturesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelfeaturesController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelfeaturesController.php index 994511b33..9f30938fe 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelfeaturesController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelfeaturesController.php @@ -141,13 +141,13 @@ class AdminHotelFeaturesController extends ModuleAdminController $this->errors[] = $this->l('Child features name is required at least in '). $objDefaultLanguage['name']; } elseif (!Validate::isGenericName($childftr)) { - $this->errors[] = $this->l('Child features name is invalid : ').$childftr; + $this->errors[] = $this->l('Child features name is invalid : ').Tools::safeOutput($childftr); } else { foreach ($languages as $lang) { if ($childFtrLang = Tools::getValue('child_features_'.$lang['id_lang'])) { if (!Validate::isGenericName($childFtrLang[$kChild])) { $this->errors[] = $this->l('Invalid child feature name in ').$lang['name']. - ' : '.$childFtrLang[$kChild]; + ' : '.Tools::safeOutput($childFtrLang[$kChild]); } } }