From 6b43536c21ea5fe5d6d348705cf707ff10889158 Mon Sep 17 00:00:00 2001 From: jennylee Date: Tue, 9 Sep 2014 18:14:29 -0400 Subject: [PATCH] BUG-14990 - NEW FEATURE, permitir especificar extensiones para los inputdocs. No se tomo en cuenta cuando la extension FILEINFO no esta habilitada el caso '*.*' --> todos los tipos de archivos permitidos. Agrege a la validacion el caso todos '*.*' --- gulliver/system/class.g.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 50d1c5dcb..24c69f573 100755 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -5346,12 +5346,12 @@ class G foreach ($allowedTypes as $types => $val) { if((preg_match('/^\*\.?[a-z]{2,8}$/', $val)) || ($val == '*.*')){ $allowedDocTypes = substr($val, 2); - if(($dtype[count($dtype) -1]) != $allowedDocTypes){ - $flag = 1; + if(($dtype[count($dtype) -1]) == $allowedDocTypes || $allowedDocTypes == '*'){ + $res->status = true; + return $res; + break; } else { - $res->status = true; - return $res; - break; + $flag = 1; } } else { $res->status = false;