From 914cd0d13d85d7095dde61d8cd047ea006024974 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 18 Jan 2014 17:25:08 +0000 Subject: [PATCH] fixed extension check (bug 162) --- lam/lib/modules/inetOrgPerson.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 7eb1a5e0..16b3d421 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -1729,7 +1729,7 @@ class inetOrgPerson extends baseModule implements passwordService { if ($_FILES['photoFile'] && ($_FILES['photoFile']['size'] > 0)) { $name = $_FILES['photoFile']['name']; $extension = strtolower(substr($name, strpos($name, '.') + 1)); - if (!extension_loaded('imagick') && !($extension == '.jpg') && !($extension == '.jpeg')) { + if (!extension_loaded('imagick') && !($extension == 'jpg') && !($extension == 'jpeg')) { $messages[] = $this->messages['file'][1]; return $messages; }