Permalink
Browse files

Set GD to ignore invalid JPEGs

  • Loading branch information...
1 parent 1f6ce1f commit 60ece61b0aa6ed933253e7fd4ef15afca6169bef @vlad-ghita vlad-ghita committed Mar 17, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/image.php
View
@@ -1,6 +1,7 @@
<?php
@ini_set('display_errors', 'off');
+ @ini_set("gd.jpeg_ignore_warning", 1);
define('DOCROOT', rtrim(realpath(dirname(__FILE__) . '/../../../'), '/'));
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/') . str_replace('/extensions/jit_image_manipulation/lib', NULL, dirname($_SERVER['PHP_SELF'])), '/'));

0 comments on commit 60ece61

Please sign in to comment.