Skip to content

Commit cf71c10

Browse files
committed
feat: fix jinja2 template
remove expression type marker left over from tal conversion. filter function output for hiddent fields to unicode and mark as safe. client_nonce is not a callable.
1 parent 1be0083 commit cf71c10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

share/roundup/templates/jinja2/html/_generic.reauth.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
<input type="submit" name="submit"
2828
value="{% trans %} Authorize Change {% endtrans %}">
2929
<input name="@csrf" type="hidden"
30-
value="{{ python:utils.anti_csrf_nonce() }}">
30+
value="{{ utils.anti_csrf_nonce() }}">
3131

32-
{{ utils.embed_form_fields(('submit',)) }}
32+
{{ utils.embed_form_fields(('submit',))|u|safe }}
3333

3434
</form>
3535

36-
<script nonce="{{ request.client.client_nonce() }}">
36+
<script nonce="{{ request.client.client_nonce }}">
3737
/* This IIFE decodes the base64 file contents in the pre blocks,
3838
creates a new file blob for each one. Then adds a multiple file
3939
input and attaches all the files to it.

0 commit comments

Comments
 (0)