Bug 9811: Fixing JSON validation error for non-javascript string literal characters
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Thu, 13 Mar 2014 10:58:18 +0000 (11:58 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 1 Jul 2014 12:57:49 +0000 (09:57 -0300)
commit638b7225ae2507a708313c7766b9e71a6d891289
tree19f0fbaa09e50a76f54c23a061d4ca65460c08a9
parentb223a5e23e393a83b5283520096e052cb122b189
Bug 9811: Fixing JSON validation error for non-javascript string literal characters

Issue:
When a patron has backslashes in his circulation notes, the JSON transportation
layer cannot send the message because it will fail JSON validation when trying to
validate backslashed non-literal characters (\s \d ...).
This causes the whole search to fail when even one Borrower has a non-literal
backslashed character in his notes.

Solution:
The Borrowers' circulation notes are filtered through a regexp which doubles all
backslashes to prepare them for the JSON validation routine.

Result:
Backslashes pass through unchanged.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt