Skip to content

Commit 1b141a3

Browse files
committed
fix: prevent issue when response body has blank characters
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
1 parent 63d89aa commit 1b141a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ var plugin_formcreator = new function() {
13731373
.off('click');
13741374
$(form).removeAttr('data-submitted');
13751375

1376-
if (xhr.responseText == '') {
1376+
if (xhr.responseText.trim() == '') {
13771377
displayAjaxMessageAfterRedirect();
13781378
return;
13791379
}

0 commit comments

Comments
 (0)