pulibrary / pul_library_drupal

Deprecated - Princeton University Library Core Site Drupal Codebase
https://library.princeton.edu/
GNU General Public License v2.0
3 stars 0 forks source link

HTML-encode quotes in allsearch-api article abstracts #2066

Closed sandbergja closed 3 months ago

sandbergja commented 3 months ago

If quotes are not HTML-encoded, they will close the title attribute and potentially print a lot of junk to the screen or allow an XSS vulnerability.

This was not needed for discoveryutils, since discoveryutils used PHP's htmlspecialchars function to html-encode these quotes on the server side.