FIX Edit extrafield of type long text loose carriage returns
This commit is contained in:
parent
8045cff888
commit
8b879ee23b
@ -2098,6 +2098,10 @@ class ExtraFields
|
|||||||
{
|
{
|
||||||
$value_key = GETPOST("options_".$key, 'alpha');
|
$value_key = GETPOST("options_".$key, 'alpha');
|
||||||
}
|
}
|
||||||
|
elseif (in_array($key_type, array('text')))
|
||||||
|
{
|
||||||
|
$value_key = GETPOST("options_".$key, 'alphanohtml');
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$value_key = GETPOST("options_".$key);
|
$value_key = GETPOST("options_".$key);
|
||||||
|
|||||||
@ -601,7 +601,7 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
|
|||||||
// '"' is dangerous because param in url can close the href= or src= and add javascript functions.
|
// '"' is dangerous because param in url can close the href= or src= and add javascript functions.
|
||||||
// '../' is dangerous because it allows dir transversals
|
// '../' is dangerous because it allows dir transversals
|
||||||
$out = str_replace(array('"', '../'), '', trim($out));
|
$out = str_replace(array('"', '../'), '', trim($out));
|
||||||
$out = dol_string_nohtmltag($out, 1);
|
$out = dol_string_nohtmltag($out, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'restricthtml': // Recommended for most html textarea
|
case 'restricthtml': // Recommended for most html textarea
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user