Fixed error in my previous commit, unknown parametery type 0.
This commit is contained in:
@@ -329,6 +329,9 @@ function clean_param($param, $type) {
|
||||
}
|
||||
|
||||
switch ($type) {
|
||||
case PARAM_RAW: // no cleaning at all
|
||||
return $param;
|
||||
|
||||
case PARAM_CLEAN: // General HTML cleaning, try to use more specific type if possible
|
||||
if (is_numeric($param)) {
|
||||
return $param;
|
||||
|
||||
Reference in New Issue
Block a user