Skip to content

Commit

Permalink
PR feedback: use correct escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 25, 2024
1 parent 8cbef56 commit 7831179
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/material/themes/material/default/selectidp-links.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
const idpInput = document.createElement('input');
idpInput.type = 'hidden';
idpInput.name = '{{ returnIDParam|e }}';
idpInput.name = '{{ returnIDParam|e('js')|raw }}';
idpInput.value = id;
document.querySelector('form').appendChild(idpInput);
Expand Down Expand Up @@ -39,7 +39,7 @@

{% if not helpCenterUrl ?? '' is empty %}
<nav class="mdl-navigation">
<a href="{{ helpCenterUrl }}" target="_blank" class="mdl-navigation__link">
<a href="{{ helpCenterUrl|e('html_attr') }}" target="_blank" class="mdl-navigation__link">
{{ '{selectidp-links:help}'|trans }}
</a>
</nav>
Expand All @@ -51,9 +51,9 @@
{% include 'announcement.twig' %}

<form layout-children="row" child-spacing="space-around">
<input type="hidden" name="entityID" value="{{ entityID|e }}"/>
<input type="hidden" name="return" value="{{ return|e }}"/>
<input type="hidden" name="returnIDParam" value="{{ returnIDParam|e }}"/>
<input type="hidden" name="entityID" value="{{ entityID|e('html_attr') }}"/>
<input type="hidden" name="return" value="{{ return|e('html_attr') }}"/>
<input type="hidden" name="returnIDParam" value="{{ returnIDParam|e('html_attr') }}"/>

{% for idp in idplist %}
<div
Expand All @@ -63,14 +63,14 @@
<div class="mdl-card__media white-bg fixed-height">
<button
class="mdl-button logo-container fill-parent"
onclick="setSelectedIdp('{{ idp.entityid|e }}')"
name="idp_{{ idp.entityid }}"
onclick="setSelectedIdp('{{ idp.entityid|e('js')|raw }}')"
name="idp_{{ idp.entityid|e('html_attr') }}"
>
<div class="image-wrapper">
<img
class="logo"
id="{{ idp.entityid|e }}"
src="{{ idp.iconurl is defined ? idp.iconurl : 'default-logo.png' }}"
id="{{ idp.entityid|e('html_attr') }}"
src="{{ idp.iconurl is defined ? idp.iconurl|e('html_attr') : 'default-logo.png' }}"
>
</div>
</button>
Expand Down

0 comments on commit 7831179

Please sign in to comment.