diff --git a/controllers/admin/AdminSearchConfController.php b/controllers/admin/AdminSearchConfController.php index 00d2daab7..5809d2d56 100644 --- a/controllers/admin/AdminSearchConfController.php +++ b/controllers/admin/AdminSearchConfController.php @@ -335,11 +335,11 @@ class AdminSearchConfControllerCore extends AdminController $this->errors[] = $this->l('Aliases and results are both required.'); } if (!Validate::isValidSearch($search)) { - $this->errors[] = $search.' '.$this->l('Is not a valid result'); + $this->errors[] = Tools::safeOutput($search).' '.$this->l('Is not a valid result'); } foreach ($aliases as $alias) { if (!Validate::isValidSearch($alias)) { - $this->errors[] = $alias.' '.$this->l('Is not a valid alias'); + $this->errors[] = Tools::safeOutput($alias).' '.$this->l('Is not a valid alias'); } } diff --git a/modules/blocknavigationmenu/views/templates/admin/custom_navigation_link_setting/helpers/form/form.tpl b/modules/blocknavigationmenu/views/templates/admin/custom_navigation_link_setting/helpers/form/form.tpl index 264969825..f27638a3e 100644 --- a/modules/blocknavigationmenu/views/templates/admin/custom_navigation_link_setting/helpers/form/form.tpl +++ b/modules/blocknavigationmenu/views/templates/admin/custom_navigation_link_setting/helpers/form/form.tpl @@ -127,7 +127,7 @@
{foreach from=$languages item=language} {assign var="navigation_link_name" value="navigation_link_name_`$language.id_lang`"} - + {/foreach}
{if $languages|@count > 1} @@ -176,7 +176,7 @@
- +
diff --git a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl index 4e4123d84..6b0cdc270 100644 --- a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl @@ -183,7 +183,7 @@ id="short_description_{$language.id_lang}" {if isset($PS_SHORT_DESC_LIMIT) && $PS_SHORT_DESC_LIMIT} maxlength="{$PS_SHORT_DESC_LIMIT|intval}"{/if} cols="2" rows="3" - class="form-control">{if isset($smarty.post.$short_desc_name)}{$smarty.post.$short_desc_name}{elseif isset($edit)}{$hotel_info.short_description[{$language.id_lang}]}{/if} + class="form-control">{if isset($smarty.post.$short_desc_name)}{$smarty.post.$short_desc_name|escape:'htmlall':'UTF-8'}{elseif isset($edit)}{$hotel_info.short_description[{$language.id_lang}]|escape:'htmlall':'UTF-8'}{/if}
{/foreach} @@ -201,7 +201,7 @@ name="description_{$language.id_lang}" id="description_{$language.id_lang}" cols="2" rows="3" - class="wk_tinymce form-control">{if isset($smarty.post.$description)}{$smarty.post.$description}{elseif isset($edit)}{$hotel_info.description[{$language.id_lang}]}{/if} + class="wk_tinymce form-control">{if isset($smarty.post.$description)}{$smarty.post.$description|escape:'htmlall':'UTF-8'}{elseif isset($edit)}{$hotel_info.description[{$language.id_lang}]|escape:'htmlall':'UTF-8'}{/if} {/foreach} @@ -209,7 +209,7 @@
- +
@@ -219,7 +219,7 @@ - +
@@ -232,13 +232,13 @@
- +
- +
@@ -261,7 +261,7 @@ {l s='Check-in:' mod='hotelreservationsystem'}
- +
@@ -269,7 +269,7 @@ {l s='Check-out:' mod='hotelreservationsystem'}
- +
@@ -305,13 +305,13 @@
- +
- +
@@ -339,7 +339,7 @@ name="policies_{$language.id_lang}" id="policies_{$language.id_lang}" cols="2" rows="3" - class="wk_tinymce form-control">{if isset($smarty.post.$policies)}{$smarty.post.$policies}{elseif isset($edit)}{$hotel_info.policies[{$language.id_lang}]}{/if} + class="wk_tinymce form-control">{if isset($smarty.post.$policies)}{$smarty.post.$policies|escape:'htmlall':'UTF-8'}{elseif isset($edit)}{$hotel_info.policies[{$language.id_lang}]|escape:'htmlall':'UTF-8'}{/if}
{/foreach}
@@ -519,7 +519,7 @@
- +
diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_feature_prices_settings/helpers/form/form.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_feature_prices_settings/helpers/form/form.tpl index 8456fdf26..7396a91ac 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_feature_prices_settings/helpers/form/form.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/hotel_feature_prices_settings/helpers/form/form.tpl @@ -40,7 +40,7 @@
{foreach from=$languages item=language} {assign var="feature_price_name" value="feature_price_name_`$language.id_lang`"} - + {/foreach}
{if $languages|@count > 1} @@ -182,7 +182,7 @@
{if isset($edit)} {if $objFeaturePrice->impact_type == HotelRoomTypeFeaturePricing::IMPACT_TYPE_FIXED_PRICE}{$defaultcurrency_sign}{else}%{/if}{else}%{/if} - +
diff --git a/modules/hotelreservationsystem/views/templates/admin/order_refund_rules/helpers/form/form.tpl b/modules/hotelreservationsystem/views/templates/admin/order_refund_rules/helpers/form/form.tpl index b5764b51c..a687eb6c0 100644 --- a/modules/hotelreservationsystem/views/templates/admin/order_refund_rules/helpers/form/form.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/order_refund_rules/helpers/form/form.tpl @@ -65,7 +65,7 @@ name="description_{$language.id_lang|escape:'htmlall':'UTF-8'}" id="description_{$language.id_lang|escape:'htmlall':'UTF-8'}" cols="2" rows="3" - class="form-control">{if isset($smarty.post.$description)}{$smarty.post.$description}{elseif isset($edit)}{$refund_rules_info.description[$language.id_lang]|escape:'htmlall':'UTF-8'}{/if} + class="form-control">{if isset($smarty.post.$description)}{$smarty.post.$description|escape:'htmlall':'UTF-8'}{elseif isset($edit)}{$refund_rules_info.description[$language.id_lang]|escape:'htmlall':'UTF-8'}{/if} {/foreach}