mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
'str(i)str(...)' could be replaced with 'str(i)pos(...)'.
(cherry picked from commit b4d079f
)
This commit is contained in:
parent
5dd290f2b2
commit
8e5338e5d3
8 changed files with 14 additions and 14 deletions
2
dl.php
2
dl.php
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue