From a403a70262ab4d6bf80235459b4e4618aad3517b Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Fri, 27 Mar 2015 16:05:24 -0400 Subject: [PATCH] Temporal fix for the class inputfilter --- gulliver/system/class.inputfilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.inputfilter.php b/gulliver/system/class.inputfilter.php index 780c461fa..0ff8fcb9e 100644 --- a/gulliver/system/class.inputfilter.php +++ b/gulliver/system/class.inputfilter.php @@ -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;