Bug 11322: fix XSS bug in purchase suggestions pages
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 2 Dec 2013 22:34:48 +0000 (11:34 +1300)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 3 Dec 2013 00:19:18 +0000 (00:19 +0000)
commit368068c71597eaf61e4f9cc154002ea92dfd16c3
treeac6389ebc4e584d1dd5b03b48890b9138ac83f94
parent15b86a38edd26eb03fb6d2d7b1b28f47df19370e
Bug 11322: fix XSS bug in purchase suggestions pages

To test
1/ Switch on purchase suggestions
2/ On the public interface (OPAC) add a suggestion, put html in every
field
3/ In the staff interface go to the suggestions page
/cgi-bin/koha/suggestion/suggestion.pl
4/ Notice the html is rendered
5/ Click on a suggestion, notice the html is rendered on the show page
also
6/ Apply the patch, check these two pages again, html should now be
escaped

Signed-off-by: David Cook <dcook@prosentient.com.au>

Works as described.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests, thx Chris!

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt