View | Details | Raw Unified | Return to bug 36382
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-4 / +5 lines)
Lines 31-36 var HtmlCharsToEscape = { Link Here
31
    "&": "&",
31
    "&": "&",
32
    "<": "&lt;",
32
    "<": "&lt;",
33
    ">": "&gt;",
33
    ">": "&gt;",
34
    "'": '&#39;',
35
    '"': '&quot;'
34
};
36
};
35
String.prototype.escapeHtml = function () {
37
String.prototype.escapeHtml = function () {
36
    return this.replace(/[&<>]/g, function (c) {
38
    return this.replace(/[&<>]/g, function (c) {
Lines 204-212 $(document).ready(function () { Link Here
204
            });
206
            });
205
207
206
            const previous_patron = {
208
            const previous_patron = {
207
                borrowernumber: $("#hiddenborrowernumber").val(),
209
                borrowernumber: escape_str($("#hiddenborrowernumber").val()),
208
                name: $("#hiddenborrowername").val(),
210
                name: escape_str($("#hiddenborrowername").val()),
209
                card: $("#hiddenborrowercard").val(),
211
                card: escape_str($("#hiddenborrowercard").val())
210
            };
212
            };
211
213
212
            previous_patrons.unshift(previous_patron);
214
            previous_patrons.unshift(previous_patron);
213
- 

Return to bug 36382