Temporal fix for the class inputfilter
This commit is contained in:
@@ -585,7 +585,7 @@ class InputFilter
|
|||||||
$value = (boolean)filter_var($value, FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE);
|
$value = (boolean)filter_var($value, FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE);
|
||||||
break;
|
break;
|
||||||
case 'path':
|
case 'path':
|
||||||
if(!file_exists($value) || !is_dir($value)) {
|
if(!file_exists($value)) {
|
||||||
$value = '';
|
$value = '';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -623,7 +623,7 @@ class InputFilter
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'path':
|
case 'path':
|
||||||
if(!file_exists($value) || !is_dir($value)) {
|
if(!file_exists($value)) {
|
||||||
throw new Exception('not a valid path');
|
throw new Exception('not a valid path');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user