Allow hotlinking images
This commit is contained in:
2
file.php
2
file.php
@@ -224,7 +224,7 @@ try {
|
||||
echo 'Path not readable: ' . $pathInfo['path'];
|
||||
exit;
|
||||
}
|
||||
[$ext, $mime, $download] = mimetype($pathInfo['path'], false);
|
||||
[, $mime, $download] = mimetype($pathInfo['path'], false);
|
||||
|
||||
// Optional thumbnail mode: ?thumb=1&w=150&h=150
|
||||
$thumb = (int)$INPUT->int('thumb');
|
||||
|
||||
Reference in New Issue
Block a user