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 commit
f6adfb4257d0326a101771246777b10965632bc8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit
eb2592e028c28b51d6276b3cb7102c6cfce19357)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
</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 %]
[% 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 %]