Fight against $_POST

This commit is contained in:
Laurent Destailleur
2020-02-16 19:33:58 +01:00
parent 52aebce789
commit f4f3efec62
41 changed files with 117 additions and 129 deletions

View File

@@ -4967,7 +4967,7 @@ abstract class CommonObject
global $conf, $_POST;
// If param here has been posted, we use this value first.
if (isset($_POST[$fieldname])) return GETPOST($fieldname, 2);
if (GETPOSTISSET($fieldname)) return GETPOST($fieldname, 'alphanohtml', 3);
if (isset($alternatevalue)) return $alternatevalue;