Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixed validation when setting IMAP hostname
  • Loading branch information
jordan-wright committed Jul 18, 2020
1 parent cf7d058 commit 4e9b94b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion static/js/dist/app/settings.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions static/js/src/app/settings.js
Expand Up @@ -132,13 +132,13 @@ $(document).ready(function () {
if (data.success == true) {
Swal.fire({
title: "Success",
html: "Logged into <b>" + $("#imaphost").val() + "</b>",
html: "Logged into <b>" + escapeHtml($("#imaphost").val()) + "</b>",
type: "success",
})
} else {
Swal.fire({
title: "Failed!",
html: "Unable to login to <b>" + $("#imaphost").val() + "</b>.",
html: "Unable to login to <b>" + escapeHtml($("#imaphost").val()) + "</b>.",
type: "error",
showCancelButton: true,
cancelButtonText: "Close",
Expand Down Expand Up @@ -230,4 +230,4 @@ $(document).ready(function () {
})

loadIMAPSettings()
})
})

1 comment on commit 4e9b94b

@abergmann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CVE-2020-24712 was assigned to this commit.

Please sign in to comment.