From 22107054862932f87248643e7a203708252f0453 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Tue, 9 May 2017 22:53:53 +0300 Subject: [PATCH] 'str(i)str(...)' could be replaced with 'str(i)pos(...)'. --- 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 3080710c7..c4e86d0cb 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 === strstr($filename, '.')) { + if (false === strpos($filename, '.')) { return ''; } $extension = strrchr(strtolower($filename), '.');