From 1ae994a22bcf2c090927a17276c6f6fdd34dc7e0 Mon Sep 17 00:00:00 2001 From: Tomasz Jakut Date: Mon, 26 Mar 2018 17:32:09 +0200 Subject: [PATCH] Secure before null in XHR response. --- plugins/filebrowser/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/filebrowser/plugin.js b/plugins/filebrowser/plugin.js index 95c86a211e7..fe5899d3685 100644 --- a/plugins/filebrowser/plugin.js +++ b/plugins/filebrowser/plugin.js @@ -361,7 +361,7 @@ var response = {}; try { - response = JSON.parse( evt.sender.xhr.response ); + response = JSON.parse( evt.sender.xhr.response ) || {}; } catch ( e ) {} // `this` is a reference to ui.dialog.fileButton.