mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit

Replace strip_tags , add a space before the "<"
This commit is contained in:
Dany De Bontridder 2019-02-13 22:44:20 +01:00
parent df79de735f
commit 6280cc8365

View file

@ -110,7 +110,7 @@ class HttpInput
if (array_key_exists($p_name,$this->array) )
{
$this->check_type($p_name, $p_type);
if ( is_string($this->array[$p_name]) ) return strip_tags($this->array[$p_name]);
if ( is_string($this->array[$p_name]) ) return preg_replace("/</","< ", $this->array[$p_name]);
return $this->array[$p_name];
}
else
@ -124,7 +124,7 @@ class HttpInput
EXC_PARAM_VALUE);
}
$this->check_type($p_name, $p_type);
if ( is_string($this->array[$p_name]) ) return strip_tags($this->array[$p_name]);
if ( is_string($this->array[$p_name]) ) return preg_replace("/</","< ", $this->array[$p_name]);
return $this->array[$p_name];
}
catch (Exception $e)