]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jun 2019 09:03:54 +0000 (10:03 +0100)
commit42a26a758079830758a51845b4526e681b75d434
treea2f627ed208b588b0b19a7332ba00e94bcd9f3ab
parent6a75f99200f6659d09e46ce9e11c5ded11020d89
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>
opac/opac-shelves.pl