]> git.koha-community.org Git - koha.git/commit
kohabug 2022 - fixed fine and issuing rules editors
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 18 Apr 2008 18:09:19 +0000 (13:09 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 21 Apr 2008 16:17:52 +0000 (11:17 -0500)
commit579a2272283ffcefd6e2f2f49836aba77d26bc75
tree13245b4b136291404cb93ce4cb28c8e8e4b89c96
parentf47bebfeb6fa0e2404d8cd489d6bd1f1723cbcf2
kohabug 2022 - fixed fine and issuing rules editors

Because of the way that the older fine and issuing
rule editors generate the HTML form, if a branch code,
patron category code, or item type code happened to have a
'-' or '.', the HTML form would not be parsed properly, thus
adding an implicit (rather than explicit) limit on the
characters allowed in one of those codes.

This fix removes this limitation by Base64-encoding the codes
when constructing the names for the <input> elements.

Two functions are added to C4::Koha:

  str_to_base64() - UTF-8 string to Base64
  base64_to_str() - reverse

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Koha.pm
admin/finesrules.pl
admin/issuingrules.pl