https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14962

--- Comment #686 from Jake Deery (kwenoch) <[email protected]> ---
Created attachment 211978
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211978&action=edit
Bug 14962: (QA follow-up) Fix stored XSS and the Add to display dropdown

B7: display names and notes were written into HTML strings unescaped
on the staff record detail page (holdings table displays column, public
and internal notes, and the Add to display dropdown/select) and, for
the public note, with | $raw on the OPAC detail page. Escape them with
escape_str / DOM text nodes / the html filter.

Finding 11, Add to display dropdown on catalogue/detail.tt:
- dropdown.innerHTML(...) was called as a function, so the no displays
  message threw instead of showing
- the loop overwrote innerHTML so only the last display was listed
- inline onclick handler replaced by an event listener
- fetch only the first page of displays (_per_page=-1)
- make the strings translatable

Also make the holdings table redraw once the displays have loaded, as it
could render before the fetch resolved and show no display data, and
fetch all displays rather than the first page.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to