From cb93a9925be700e5e1b0314f6cf66b19e7da5a34 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 11 May 2015 17:42:06 +0200 Subject: adds a simple publish status UI to show errors --- controllers/editor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'controllers/editor.php') diff --git a/controllers/editor.php b/controllers/editor.php index caac4a3..15d65ef 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -21,7 +21,8 @@ $app->post('/editor/publish', function() use($app) { $app->response()['Content-type'] = 'application/json'; $app->response()->body(json_encode([ - 'location' => $r['location'] + 'location' => $r['location'], + 'response' => trim(htmlspecialchars($r['response'])) ])); } }); -- cgit v1.2.3