Skip to content
This repository was archived by the owner on Dec 13, 2021. It is now read-only.

Commit c0edf02

Browse files
committed
Don't user <br> in non-HTML mail body
1 parent 9de6506 commit c0edf02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github_post_receive.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @version 0.1 (updated 31-May-2009 @ 06:01 PDT)
77
*/
88

9-
define('SEND_HTML_EMAIL', true);
9+
define('SEND_HTML_EMAIL', false);
1010
define('SEND_DIFF', true);
1111

1212
define('EMAIL_FROM', 'noreply@yuba.stanford.edu');
@@ -87,7 +87,7 @@ function mail_github_post_receive($to, $subj_header, $github_json) {
8787
HTML_P . 'Commit: ' . make_url($url, $id, false) .
8888
HTML_BR . "Author: $author_name (" . make_url($author_email, $author_email, true) . ')' .
8989
HTML_BR . "Date: $date" .
90-
HTML_BLOCKQUOTE . str_replace("\n", "<br/>", $msg . "\n\n" . github_get_diff($repo_owner, $repo, $id)) . HTML_BLOCKQUOTE_END . HTML_P_END;
90+
HTML_BLOCKQUOTE . str_replace("\n", HTML_BR, $msg . "\n\n" . github_get_diff($repo_owner, $repo, $id)) . HTML_BLOCKQUOTE_END . HTML_P_END;
9191
}
9292

9393
// create a list of aggregate additions/deletions/modifications

0 commit comments

Comments
 (0)