Function checkImageContents
Searches through the file to see if there's potentially harmful non-binary content. - if extensiveCheck is true, searches for asp/php short tags as well.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Graphics.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Graphics.php
string |
$fileName |
The path to the file |
boolean |
$extensiveCheck = false |
Whether to perform extensive checks |
boolean
|
Whether the image appears to be safe |