Skip to content

Commit

Permalink
Fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Mar 15, 2022
1 parent 9eff036 commit 32141e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/Controller/Authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ public function forbidden(Request $request): Template

$t = new Template($this->config, 'authorize:authorize_403.twig');
if (isset($state['Source']['auth'])) {
$t->data['logoutURL'] = Module::getModuleURL(
'core/logout/' . urlencode($state['Source']['auth']),
);
$t->data['source'] = $state['Source']['auth'];
}
if (isset($state['authprocAuthorize_reject_msg'])) {
$t->data['reject_msg'] = $state['authprocAuthorize_reject_msg'];
Expand Down
2 changes: 1 addition & 1 deletion templates/authorize_403.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endif %}
{% if logoutURL is defined %}
<p>
<a href="{{ logoutURL }}">{% trans %}Logout{% endtrans %}</a>
<a href="{{ moduleURL('core/logout/' ~ source|url_encode) }}">{% trans %}Logout{% endtrans %}</a>
</p>
{% endif %}
{% endblock%}

0 comments on commit 32141e1

Please sign in to comment.