From 95c8b73585eb397a31c5a658b2fefe2208bef522 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 13 May 2015 15:49:14 -0700 Subject: [PATCH] remove the extra space --- controllers/editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/editor.php b/controllers/editor.php index 232e0d5..71d9f4b 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -31,7 +31,7 @@ $app->post('/editor/upload', function() use($app) { // Fake a file uploader by echo'ing back the data URI $fn = $_FILES['files']['tmp_name'][0]; $imageData = base64_encode(file_get_contents($fn)); - $src = 'data: '.mime_content_type($fn).';base64,'.$imageData; + $src = 'data:'.mime_content_type($fn).';base64,'.$imageData; $app->response()['Content-type'] = 'application/json'; $app->response()->body(json_encode([