From: Andrew Dolgov Date: Tue, 16 Apr 2013 21:17:06 +0000 (+0400) Subject: Revert "floIcon: set cap on image size" X-Git-Tag: 1.7.9~25^2~187 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=05a46342a4ee100c88799a78c0df271accdb181a Revert "floIcon: set cap on image size" This reverts commit cb50799560f796d95c44093a5977c212e19f2d7f. --- diff --git a/lib/floIcon.php b/lib/floIcon.php index e1d1b84e..e9498b0e 100644 --- a/lib/floIcon.php +++ b/lib/floIcon.php @@ -16,13 +16,13 @@ Date: 2009-03-16 Changes: I was a little hasty on that last update. A couple new bugs from 1.1.0 have -been fixed. +been fixed. Version 1.1.0: Date: 2009-03-16 Changes: -Added Vista support. +Added Vista support. Fixed a number of minor bugs. Many thanks to Dvir Berebi for pointing them out. @@ -386,7 +386,7 @@ class floIconImage { imagealphablending($imageResource, false); $height = imagesy($imageResource); $width = imagesx($imageResource); - + // Parse resource to determine header and icon format // Find Palette information @@ -637,7 +637,7 @@ class floIconImage { $this->_imageIconFormat = $imageAsPng; } - + } function _createImageResource() { if ($newImage = @imagecreatefromstring($this->_headerIconFormat.$this->_imageIconFormat)) { @@ -780,10 +780,6 @@ class floIconImage { $this->_entryIconFormat = fread($filePointer, 16); $this->_entry = unpack("CWidth/CHeight/CColorCount/CReserved/SPlanes/SBitCount/LSizeInBytes/LFileOffset", $this->_entryIconFormat); - // fox - if ($this->_entry["SizeInBytes"] > 16384) - $this->_entry["SizeInBytes"] = 16384; - // Position the file pointer. fseek($filePointer, $this->_entry["FileOffset"]); @@ -844,4 +840,4 @@ class floIconImage { $this->_imageResource = null; } } -?> +?> \ No newline at end of file