Fix disallow < > into meta info

Fix message page regenerated
This commit is contained in:
Laurent Destailleur
2020-06-09 21:43:42 +02:00
parent 063b3263cc
commit 756ef0b583
4 changed files with 40 additions and 30 deletions

View File

@@ -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 it allows dir transversals
$out = str_replace(array('"', '../'), '', trim($out));
$out = dol_string_nohtmltag($out);
$out = dol_string_nohtmltag($out, 1);
}
break;
case 'restricthtml': // Recommended for most html textarea