Temporal fix for the class inputfilter

This commit is contained in:
Julio Cesar Laura
2015-03-27 16:05:24 -04:00
parent 24888248d2
commit a403a70262

View File

@@ -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;