From eba06c0e1a4d5d9816c11ed1a0c6cdb380167303 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Fri, 5 May 2017 01:01:59 +0300 Subject: [PATCH] 'stristr(...)/stripos(...)/strripos(...)' could be replaced with 'strstr(...)/strpos()/strrpos()'. --- library/attach_mod/includes/functions_attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/attach_mod/includes/functions_attach.php b/library/attach_mod/includes/functions_attach.php index 1fb8a9033..bb8764c72 100644 --- a/library/attach_mod/includes/functions_attach.php +++ b/library/attach_mod/includes/functions_attach.php @@ -410,7 +410,7 @@ function attachment_sync_topic($topics) */ function get_extension($filename) { - if (false === stripos($filename, '.')) { + if (false === strstr($filename, '.')) { return ''; } $extension = strrchr(strtolower($filename), '.');