Skip to content

Commit

Permalink
fix: prevent issue when response body has blank characters
Browse files Browse the repository at this point in the history
seems to happen when something in a glpi instance emits a blanck character
probably caused by a closing php tag followed by a space, or similar problems
  • Loading branch information
btry committed Nov 27, 2023
1 parent 63d89aa commit 1b141a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ var plugin_formcreator = new function() {
.off('click');
$(form).removeAttr('data-submitted');

if (xhr.responseText == '') {
if (xhr.responseText.trim() == '') {
displayAjaxMessageAfterRedirect();
return;
}
Expand Down

0 comments on commit 1b141a3

Please sign in to comment.