mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Merge #3261
3261: Fix #3260: double-quotes should be escaped/allowed in ooo r=mergify[bot] a=nextgens ## What type of PR? bug-fix ## What does this PR do? double-quotes should be allowed in ooo messages ### Related issue(s) - closes #3260 - #3249 ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [ ] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
commit
66721f260d
@ -31,6 +31,6 @@ if spamtest :percent :value "gt" :comparator "i;ascii-numeric" "{{ user.spam_thr
|
||||
|
||||
{% if user.reply_active %}
|
||||
if not address :localpart :contains ["From","Reply-To"] ["noreply","no-reply"]{
|
||||
vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name }} <{{ user.email }}>"{% endif %} :subject "{{ user.reply_subject }}" "{{ user.reply_body }}";
|
||||
vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name | replace("\"", "\\\"") }} <{{ user.email | replace("\"", "\\\"") }}>"{% endif %} :subject "{{ user.reply_subject | replace("\"", "\\\"") }}" "{{ user.reply_body | replace("\"", "\\\"") }}";
|
||||
}
|
||||
{% endif %}
|
||||
|
1
towncrier/newsfragments/3260.bugfix
Normal file
1
towncrier/newsfragments/3260.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix a bug preventing double quotes from being used in ooo messages
|
Loading…
x
Reference in New Issue
Block a user