'str(i)str(...)' could be replaced with 'str(i)pos(...)'.

(cherry picked from commit b4d079f)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 01:01:48 +03:00 committed by Vasily Komrakov
commit 8e5338e5d3
No known key found for this signature in database
GPG key ID: 558236680C20A69A
8 changed files with 14 additions and 14 deletions

2
dl.php
View file

@ -54,7 +54,7 @@ function send_file_to_browser($attachment, $upload_dir)
// Correct the mime type - we force application/octet-stream for all files, except images
// Please do not change this, it is a security precaution
if (!strstr($attachment['mimetype'], 'image')) {
if (false === strpos($attachment['mimetype'], 'image')) {
$attachment['mimetype'] = 'application/octet-stream';
}