diff options
author | Aaron Parecki <aaron@parecki.com> | 2015-05-11 17:42:06 +0200 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2015-05-11 17:42:06 +0200 |
commit | cb93a9925be700e5e1b0314f6cf66b19e7da5a34 (patch) | |
tree | 7d2cda6a0e4575a658104cdb298cfd9cd77f97d7 /controllers/editor.php | |
parent | 475175da5fd90162930acc123712a529f809f961 (diff) |
adds a simple publish status UI to show errors
Diffstat (limited to 'controllers/editor.php')
-rw-r--r-- | controllers/editor.php | 3 |
1 files changed, 2 insertions, 1 deletions
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'])) ])); } }); |