]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Mon, 1 Aug 2016 11:31:23 +0000 (13:31 +0200)
commita3e2ea765f2e34f397fa9e1236dbc4e837311f88
tree60db9feed5a62ad1ac2b21ac38883473f8a6e2a3
parentb7412a34c5e8f95a1730a421f3513d0d1e10639a
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: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 65918b146cd88f38a9d894be8175d049ea70d05f)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt