[Koha-bugs] [Bug 25639] Add search queries to HTML so queries can be retrieved via JS
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 22 02:28:41 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25639
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcook at prosentient.com.au
--- Comment #7 from David Cook <dcook at prosentient.com.au> ---
Here's a thought:
Does it have to be in the HTML? (We're not displaying the HTML nor are we
POSTing a hidden field, so this just seems a bit hacky.)
Since we know what the search query is when we're building the HTTP response,
we could possibly just put it in a Javascript variable.
You could store the 3 strings in a JSON object, and since we'd build the JSON
server-side, it would be easy to validate the data to prevent XSS
vulnerabilities.
Anyway, just a thought. It could be a cleaner way of doing it.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list