Merged in julceslau/processmaker (pull request #1815)

Temporal fix for the class inputfilter
This commit is contained in:
Julio Cesar Laura Avendaño
2015-03-27 16:06:42 -04:00

View File

@@ -585,7 +585,7 @@ class InputFilter
$value = (boolean)filter_var($value, FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE);
break;
case 'path':
if(!file_exists($value) || !is_dir($value)) {
if(!file_exists($value)) {
$value = '';
}
break;
@@ -623,7 +623,7 @@ class InputFilter
}
break;
case 'path':
if(!file_exists($value) || !is_dir($value)) {
if(!file_exists($value)) {
throw new Exception('not a valid path');
}
break;