Skip to content

Commit

Permalink
Secure before null in XHR response.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Mar 26, 2018
1 parent 0323caa commit 1ae994a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filebrowser/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1ae994a

Please sign in to comment.