// ups
This commit is contained in:
@@ -942,9 +942,8 @@ abstract class ObjectModelCore
|
|||||||
if (!empty($value))
|
if (!empty($value))
|
||||||
{
|
{
|
||||||
$res = true;
|
$res = true;
|
||||||
if (Tools::strtolower($data['validate']) == 'isCleanHtml')
|
if (Tools::strtolower($data['validate']) == 'iscleanhtml')
|
||||||
{
|
{
|
||||||
d('in');
|
|
||||||
if (!call_user_func(array('Validate', $data['validate']), $value, (int)Configuration::get('PS_ALLOW_HTML_IFRAME')))
|
if (!call_user_func(array('Validate', $data['validate']), $value, (int)Configuration::get('PS_ALLOW_HTML_IFRAME')))
|
||||||
$res = false;
|
$res = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2060,7 +2060,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
if ($this->isProductFieldUpdated($field) && ($value = Tools::getValue($field)))
|
if ($this->isProductFieldUpdated($field) && ($value = Tools::getValue($field)))
|
||||||
{
|
{
|
||||||
$res = true;
|
$res = true;
|
||||||
if (Tools::strtolower($function) == 'isCleanHtml')
|
if (Tools::strtolower($function) == 'iscleanhtml')
|
||||||
{
|
{
|
||||||
if (!Validate::$function($value, (int)Configuration::get('PS_ALLOW_HTML_IFRAME')))
|
if (!Validate::$function($value, (int)Configuration::get('PS_ALLOW_HTML_IFRAME')))
|
||||||
$res = false;
|
$res = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user