add configurable email signature for all outgoing mail notifications#44
add configurable email signature for all outgoing mail notifications#44sedan07 merged 1 commit intofiveai:2.6from
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.5 #44 +/- ##
============================================
- Coverage 55.82% 55.77% -0.05%
- Complexity 1265 1267 +2
============================================
Files 275 275
Lines 4804 4810 +6
============================================
+ Hits 2682 2683 +1
- Misses 2122 2127 +5
Continue to review full report at Codecov.
|
|
@qwertiko nice! Looks good to me. |
|
will a |
|
This implementation does not strip style attributes from the html or sanitize the mail_signature input in any other way. Neither on saving nor on including in mails. One could argue with compromised systems injecting stuff into the database. However, a compromised system could also tweak templates. Also, I believe it is fair to trust email clients. It is possible to sanitize html and require inline css in order to style the signature html stuff, which could be accomplished with a separate mail_stylesheet option. However I would assume that this is not necessary and that this implementation would suffice. |
|
@qwertiko sorry miss read your first comment thought you meant you'd add the css option as well as this, not instead of. 🤦 Yes this looks fine as it is. I'm thinking it should go into a 2.6 branch instead as it's a little more than a patch fix :-), there's a 2.6 branch now created to point this PR at . |
let me know if this
{!! Config::get('setting.mail_signature') !!}is no good. I'll then add a mail_stylesheet option, too.