Bug 19911: Escape password value during self-registration confirmation
The password must be correctly escape, it can contains html character and break the display. Test plan: Apply first patch and confirm that the display is broken Apply second patch (this one) and confirm that the display is fixed Signed-off-by: Arturo <alongoria@sll.texas.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commitf6adfb4257) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commiteb2592e028) Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
c76f4c8752
commit
0e93f64e28
|
|
@ -42,7 +42,7 @@
|
|||
</p>
|
||||
<p id="patron-password-p">
|
||||
<span id="patron-password-label">Password:</span>
|
||||
<span id="patron-password">[% password_cleartext %]<span>
|
||||
<span id="patron-password">[% password_cleartext | html %]</span>
|
||||
</p>
|
||||
|
||||
[% IF borrower.cardnumber %]
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
[% END %]
|
||||
<label for="password">Password:</label>
|
||||
[% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
|
||||
<input type="password" id="password" size="10" name="password" value="[% password_cleartext %]" />
|
||||
<input type="password" id="password" size="10" name="password" value="[% password_cleartext | html %]" />
|
||||
[% ELSE %]
|
||||
<input type="password" id="password" size="10" name="password" value="" />
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue