Skip to content

Commit 88bfced

Browse files
author
roadiz-ci
committed
fix(impersonation): url encode username in admin link
1 parent d385267 commit 88bfced

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/users/user_row.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
data-uk-tooltip="{animation:true}"><i class="uk-icon-rz-pencil"></i></a>
5858
{% if not (item.username == app.user.username or is_granted('IS_IMPERSONATOR')) %}
5959
<a class="uk-button uk-button-content uk-button-small rz-no-ajax-link"
60-
href="{{ path('adminHomePage') }}?_su={{ item.username }}"
60+
href="{{ path('adminHomePage') }}?_su={{ item.username|url_encode }}"
6161
title="{% trans %}start.test.user.right{% endtrans %}"
6262
data-uk-tooltip="{animation:true}"><i class="uk-icon-rz-sudo"></i></a>
6363
{% endif %}

0 commit comments

Comments
 (0)