]> 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 Nighswonger <chris.nighswonger@gmail.com>
Thu, 4 Aug 2011 02:42:59 +0000 (22:42 -0400)
commit16eb069c9270263db2c27b54734eeea950f0c931
tree63f54939f21763d357a896bb6d6c89d681a5cd0d
parent087c658d197e4af9af66850f1311bfbc2cfc2a13
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>
(cherry picked from commit 649573ad244b95e1b90df7d0925f31f735ae50f7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
opac/opac-search.pl