[Koha-bugs] [Bug 22941] Giving malformed sortfield to list results in Internal Server Error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 13 21:17:20 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22941

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #90441|0                           |1
        is obsolete|                            |

--- Comment #2 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 90583
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90583&action=edit
Bug 22941: Do not return 500 if sortfield contain parenthesis

Test plan (on staff client of kohadevbox after making a list):
http://localhost:8081/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=1&sortfield=title(&direction=desc

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 at hotmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list