cambios en class.inputfilter.php

This commit is contained in:
marcelo.cuiza
2015-04-13 16:43:56 -04:00
parent cffa3f095d
commit 8235ece2d5

View File

@@ -586,7 +586,9 @@ class InputFilter
break;
case 'path':
if(!file_exists($value)) {
$value = '';
if(!is_dir($value)) {
$value = '';
}
}
break;
case 'nosql':
@@ -624,7 +626,9 @@ class InputFilter
break;
case 'path':
if(!file_exists($value)) {
throw new Exception('not a valid path');
if(!is_dir($value)) {
throw new Exception('not a valid path');
}
}
break;
case 'nosql':