cambios en class.inputfilter.php
This commit is contained in:
@@ -586,7 +586,9 @@ class InputFilter
|
|||||||
break;
|
break;
|
||||||
case 'path':
|
case 'path':
|
||||||
if(!file_exists($value)) {
|
if(!file_exists($value)) {
|
||||||
$value = '';
|
if(!is_dir($value)) {
|
||||||
|
$value = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'nosql':
|
case 'nosql':
|
||||||
@@ -624,7 +626,9 @@ class InputFilter
|
|||||||
break;
|
break;
|
||||||
case 'path':
|
case 'path':
|
||||||
if(!file_exists($value)) {
|
if(!file_exists($value)) {
|
||||||
throw new Exception('not a valid path');
|
if(!is_dir($value)) {
|
||||||
|
throw new Exception('not a valid path');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'nosql':
|
case 'nosql':
|
||||||
|
|||||||
Reference in New Issue
Block a user