Skip to content

Commit

Permalink
Merge pull request #18209 from liviuconcioiu/18160
Browse files Browse the repository at this point in the history
Fix #18160 - Check if hostname exists
  • Loading branch information
MauricioFauth committed Mar 4, 2023
2 parents ec8a6a4 + bf1b0a2 commit 1d26748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/server/privileges.js
Expand Up @@ -16,7 +16,7 @@
* @return {bool} whether the form is validated or not
*/
function checkAddUser (theForm) {
if (theForm.elements.hostname.value === '') {
if (theForm.elements.hostname && theForm.elements.hostname.value === '') {
alert(Messages.strHostEmpty);
theForm.elements.hostname.focus();
return false;
Expand Down

0 comments on commit 1d26748

Please sign in to comment.