Skip to content

Commit bac0661

Browse files
authored
Merge pull request #2352 from damienalexandre/newline-email
Make sure their is no new line in email subject
2 parents b0d5a26 + 6ffc19e commit bac0661

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Resources/views/Registration/email.txt.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{% block subject %}
2-
{% autoescape false %}
2+
{%- autoescape false -%}
33
{{ 'registration.email.subject'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}, 'FOSUserBundle') }}
4-
{% endautoescape %}
4+
{%- endautoescape -%}
55
{% endblock %}
6+
67
{% block body_text %}
78
{% autoescape false %}
89
{{ 'registration.email.message'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}, 'FOSUserBundle') }}

Resources/views/Resetting/email.txt.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{% block subject %}
2-
{% autoescape false %}
2+
{%- autoescape false -%}
33
{{ 'resetting.email.subject'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}, 'FOSUserBundle') }}
4-
{% endautoescape %}
4+
{%- endautoescape -%}
55
{% endblock %}
6+
67
{% block body_text %}
78
{% autoescape false %}
89
{{ 'resetting.email.message'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}, 'FOSUserBundle') }}

0 commit comments

Comments
 (0)