From 05442c42138b3395da748ed5e11876a859fb180e 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()'. (cherry picked from commit eba06c0) --- 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 b6584432a..cb9288af5 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), '.');