]> git.koha-community.org Git - koha.git/commit
Bug 16958: Fix XSS in opac-imageviewer.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 22 Jul 2016 07:14:27 +0000 (08:14 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 3 Aug 2016 20:25:52 +0000 (08:25 +1200)
commit59458a37813fede6b4f278682184aa6a275f3bc0
tree3e7cc8fb4c01e6c8db863fa617cbc343efd15723
parent1e908ec9c647d5bc31448a1cf644d3636b2bd213
Bug 16958: Fix XSS in opac-imageviewer.pl

Test plan:
Trigger
/opac-imageviewer.pl?biblionumber=14&imagenumber=7"><sCrIpT>alert(42)<%2fsCrIpT>

=> Without this patch you will see the JS alert
=> With this patch applied you won't see it

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt