]> git.koha-community.org Git - koha.git/commit
Bug 17526: Change grep to deal with malformed sortfield
authorMark Tompsett <mtompset@hotmail.com>
Thu, 13 Jun 2019 19:27:00 +0000 (19:27 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 20 Jun 2019 12:59:09 +0000 (14:59 +0200)
commitbf11cd06c556322fe0ed52c3cbf0352ff0bdcc5f
tree9771cb7f7487a13a8b4b3eb78e217958da9e6ee0
parentcf1c06e8f059b6ac017132fa451d9e5df0d6c4f2
Bug 17526: Change grep to deal with malformed sortfield

Giving sortfield a malformed value when viewing lists results in
Internal Server Error.

eg.
http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=1&sortfield=title(

Note the trailing (

Before Patch: kaboom
apply patch
restart
After Patch: No kaboom

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 42a26a758079830758a51845b4526e681b75d434)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-shelves.pl