diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-02-29 13:42:58 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-02-29 13:42:58 +0100 |
commit | af3ae4f2179ab3fea8d4a484c6e02483fba1071c (patch) | |
tree | 2ecb875361954cb848dac0e5c2eb5a2d898ad0f1 /system/libraries/Image_lib.php | |
parent | 9f3ce15bc1925f1b7d6e0b678dbf11f01f01a460 (diff) | |
parent | 002b4be248e448227a718e6f7d9ee39ccc575745 (diff) |
Merge remote-tracking branch 'upstream/develop' into develop-db-sqlite3
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)); } |