Change <input value="..."> encoding to HTML.escape

This commit is contained in:
mastihios
2021-10-11 20:35:07 +00:00
committed by Samantaz Fox
parent 0ca333715b
commit cb0f7bf6b0
13 changed files with 17 additions and 17 deletions

View File

@@ -72,7 +72,7 @@
<% end %>
<div class="pure-u-1-4">
<form action="/signout?referer=<%= env.get?("current_page") %>" method="post">
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(env.get?("csrf_token").try &.as(String) || "") %>">
<input type="hidden" name="csrf_token" value="<%= HTML.escape(env.get?("csrf_token").try &.as(String) || "") %>">
<a class="pure-menu-heading" href="#">
<input style="all:unset" type="submit" value="<%= translate(locale, "Log out") %>">
</a>