Skip to content

Commit f5efd90

Browse files
committed
minor #17308 [Security] Removing self-closing slash from <input>s (ThomasLandauer)
This PR was merged into the 6.2 branch. Discussion ---------- [Security] Removing self-closing slash from `<input>`s I suggested the same for Symfony's templates, see symfony/symfony#47715 Commits ------- c08a0a8 Removing self-closing slash from `<input>`s
2 parents dcce2f9 + c08a0a8 commit f5efd90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,13 +807,13 @@ Finally, create or update the template:
807807

808808
<form action="{{ path('app_login') }}" method="post">
809809
<label for="username">Email:</label>
810-
<input type="text" id="username" name="_username" value="{{ last_username }}"/>
810+
<input type="text" id="username" name="_username" value="{{ last_username }}">
811811

812812
<label for="password">Password:</label>
813-
<input type="password" id="password" name="_password"/>
813+
<input type="password" id="password" name="_password">
814814

815815
{# If you want to control the URL the user is redirected to on success
816-
<input type="hidden" name="_target_path" value="/account"/> #}
816+
<input type="hidden" name="_target_path" value="/account"> #}
817817

818818
<button type="submit">login</button>
819819
</form>

0 commit comments

Comments
 (0)