Bug 22941: Do not return 500 if sortfield contain parenthesis
commitf8db499f4a9c71e7a2ffef0fadaecddb938330d4
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 8 Jun 2019 19:45:33 +0000 (8 14:45 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 15 Jun 2019 06:47:02 +0000 (15 07:47 +0100)
tree0d6823df2fdecf7109aec897f887bcc410720767
parentef0c31f735cf68a3b004c706e274ede4bb883940
Bug 22941: Do not return 500 if sortfield contain parenthesis

Test plan:
Hit /virtualshelves/shelves.pl?op=view&shelfnumber=1&sortfield=author(

You must not get:
Unmatched ( in regex; marked by <-- HERE in m/^author( <-- HERE $/ at /home/vagrant/kohaclone/virtualshelves/shelves.pl line 236

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
virtualshelves/shelves.pl