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), '.');