mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-27 15:07:13 +00:00
fail better if Feeds.view() data failed encoding to JSON
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
|
||||
$ERRORS[14] = __("Plugin not found");
|
||||
|
||||
$ERRORS[15] = __("Encoding data as JSON failed");
|
||||
|
||||
if ($_REQUEST['mode'] == 'js') {
|
||||
header("Content-Type: text/javascript; charset=UTF-8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user