summaryrefslogtreecommitdiffstats
path: root/lib/image.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-01-12 18:04:23 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-01-12 22:50:12 +0100
commite60860148cbe9e97cd898712b63302da3df82ed0 (patch)
tree0599179896c776dcefff50b93a8f4505eddd707c /lib/image.php
parent22356533a0529197d8a4c383307b566f94ed6fc4 (diff)
downloadnextcloud-server-e60860148cbe9e97cd898712b63302da3df82ed0.tar.gz
nextcloud-server-e60860148cbe9e97cd898712b63302da3df82ed0.zip
Don't chunk_split encoded image string.
Don't return json error but null if card can't be parsed. Small check for non-parsable card in index.php.
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index bdfa1fefd7d..70ad3f5969e 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -196,7 +196,7 @@ class OC_Image {
if (!$res) {
OC_Log::write('core','OC_Image::_string. Error writing image',OC_Log::ERROR);
}
- return chunk_split(base64_encode(ob_get_clean()));
+ return base64_encode(ob_get_clean());
}
/**