You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function accepts a $varType of 'numeric' which it interprets as either 'int' or 'float', and when the value does not match any of these, it must return the $varDefault parameter. However, the following line:
settype($varDefault, $varType);
gives a warning sine 'numeric' is not a valid settype parameter.
Keywords: sanitizeInputValues, settype, numeric
The text was updated successfully, but these errors were encountered:
Propose to remove the 'numeric' case, and change all affected getRequestVar() calls to 'int'. (A quick grep shows it only used to get the 'h', 'm', and 's' parameters.)
Matt: in getRequestVar(), should we remove the 'array' case too? I don't believe it's possible to pass an array as a GET/POST parameter (except as something encoded, e.g., JSON, in which case, it would be a string).
The function accepts a $varType of 'numeric' which it interprets as either 'int' or 'float', and when the value does not match any of these, it must return the $varDefault parameter. However, the following line:
gives a warning sine 'numeric' is not a valid settype parameter.
Keywords: sanitizeInputValues, settype, numeric
The text was updated successfully, but these errors were encountered: