]> git.koha-community.org Git - koha.git/commit
Bug 5131 :restrict use of sort_by value to allowed values
authorFrère Sébastien Marie <semarie-koha@latrappe.fr>
Wed, 27 Jul 2011 09:48:29 +0000 (11:48 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 4 Aug 2011 01:17:22 +0000 (13:17 +1200)
commit649573ad244b95e1b90df7d0925f31f735ae50f7
tree834cb53beaf6ff5b77e27927b2b305c39580466f
parent6991bae259221dcee036cc57444740669d3afa78
Bug 5131 :restrict use of sort_by value to allowed values

The user input for sort_by value was used without care, resulting the possibility for user to set any Template Variable to 1.

This patch restrict the values to sort field.
The list of allowd_sortby was taken from 'includes/resort_form.inc'.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-search.pl