From 8235ece2d5168c4ae02132e4bb31744ce5d6ffcd Mon Sep 17 00:00:00 2001 From: "marcelo.cuiza" Date: Mon, 13 Apr 2015 16:43:56 -0400 Subject: [PATCH] cambios en class.inputfilter.php --- gulliver/system/class.inputfilter.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.inputfilter.php b/gulliver/system/class.inputfilter.php index e4c34b9a2..90c9763b1 100644 --- a/gulliver/system/class.inputfilter.php +++ b/gulliver/system/class.inputfilter.php @@ -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':