diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-01 18:44:26 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-01 18:44:26 +0100 |
commit | f4ec1f21d5d53ce7c2a1076ca8fd3ab2e6223a6e (patch) | |
tree | 6488c0e16d040dc5b112ea990bd6051ff32e003c /system/libraries/Image_lib.php | |
parent | 575bbfe97e4f0e3ad88558454fb2c87d372a7651 (diff) | |
parent | e3a68042c086acfc98ae273adbd8527af0c6ab8b (diff) |
Merge upstream branch
Diffstat (limited to 'system/libraries/Image_lib.php')
-rw-r--r-- | system/libraries/Image_lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 5ea830fb1..9826eabdd 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -251,7 +251,7 @@ class CI_Image_lib { } else { - if (function_exists('realpath') && @realpath($this->new_image) !== FALSE) + if (strpos($this->new_image, '/') === FALSE AND strpos($this->new_image, '\\') === FALSE) { $full_dest_path = str_replace('\\', '/', realpath($this->new_image)); } |