From d9c7f031cf525229238c1f8ab02a44436ee2c32e Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Mon, 1 Dec 2008 20:18:00 +0000
Subject: Removed a strict type check from the rotate() function of the Image
Manipulation Class.
---
system/libraries/Image_lib.php | 2 +-
user_guide/changelog.html | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index 16201ee9e..1b2d33de8 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -397,7 +397,7 @@ class CI_Image_lib {
// Allowed rotation values
$degs = array(90, 180, 270, 'vrt', 'hor');
- if ($this->rotation_angle == '' OR ! in_array($this->rotation_angle, $degs, TRUE))
+ if ($this->rotation_angle == '' OR ! in_array($this->rotation_angle, $degs))
{
$this->set_error('imglib_rotation_angle_required');
return FALSE;
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index a0c0fd06b..2c2f63ba1 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -68,6 +68,7 @@ SVN Revision:
A "HTTP/1.1 400 Bad Request" header is now sent when disallowed characters are encountered.
Added <big>, <small>, <q>, and <tt> to the Typography parser's inline elements.
Added more accurate error reporting for the Email library when using sendmail.
+ Removed a strict type check from the rotate() function of the Image Manipulation Class.
Database
--
cgit v1.2.3-24-g4f1b