mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-09 09:36:38 +02:00
improving error handling when opening (non)-recoverable images
This commit is contained in:
@@ -797,7 +797,7 @@ class CImage
|
|||||||
public function failedToLoad()
|
public function failedToLoad()
|
||||||
{
|
{
|
||||||
header("HTTP/1.0 404 Not Found");
|
header("HTTP/1.0 404 Not Found");
|
||||||
echo("Fatal error when opening image.<br>");
|
echo("CImage.php says 404: Fatal error when opening image.<br>");
|
||||||
|
|
||||||
switch ($this->fileExtension) {
|
switch ($this->fileExtension) {
|
||||||
case 'jpg':
|
case 'jpg':
|
||||||
|
Reference in New Issue
Block a user