Skip to content

Commit

Permalink
Creating event causes log, which breaks redirect
Browse files Browse the repository at this point in the history
When creating a new event, and activate the mailing for yourself ("Event that I create => YES"), then a log is created when $this->SMTPDebug = 2.
This breaks the redirect of the HTML page, and gives the user "confusing" feedback.  Everything works, but the user receives a weird email log, and a tiny link to click to get back to the expected page.

Disabling error logging fixes this.
  • Loading branch information
jawtheshark committed Mar 22, 2019
1 parent 7efab11 commit 4a410b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/WebCalMailer.class
Expand Up @@ -40,7 +40,7 @@ class WebCalMailer extends phpmailer{
// Turn on SMTP authentication.
$this->SMTPAuth = ( $SMTP_AUTH == 'Y' );
$this->SMTPSecure = "tls";
$this->SMTPDebug = 2;
$this->SMTPDebug = 0;
$this->Username = $SMTP_USERNAME; // SMTP username.
$this->Password = $SMTP_PASSWORD; // SMTP password.
}
Expand Down

0 comments on commit 4a410b8

Please sign in to comment.