Skip to content

Commit

Permalink
FIX: Fix failing reporting of errors when messages contained special …
Browse files Browse the repository at this point in the history
…characters
  • Loading branch information
LarsMichelsen committed Jan 24, 2024
1 parent ea01458 commit 1beb669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.9.41
Frontend:
* FIX: Fix failing reporting of errors when messages contained special characters

1.9.40
Core:
Expand Down
4 changes: 2 additions & 2 deletions share/frontend/nagvis-js/classes/ViewError.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ private function errorPage($e) {
js('frontendMessage({'.N
.' "type" : "error",'.N
.' "closable": false,'.N
.' "title" : "'.l('Error').'",'.N
.' "message" : "'.htmlentities($e->getMessage(), ENT_COMPAT, 'UTF-8').'"'.N
.' "title" : '.json_encode(l('Error')).','.N
.' "message" : '.json_encode(htmlentities($e->getMessage(), ENT_COMPAT, 'UTF-8')).N
.'});');
echo '</div>';

Expand Down

0 comments on commit 1beb669

Please sign in to comment.