[Koha-bugs] [Bug 30540] New: Double processing invalid dates can lead to ISE

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 14 09:40:04 CEST 2022


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

            Bug ID: 30540
           Summary: Double processing invalid dates can lead to ISE
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: martin.renvoize at ptfs-europe.com
        QA Contact: testopia at bugs.koha-community.org

In the KohaDates filter we process our passed date using dt_from_string before
passing it to output_pref.

dt_from_string handles bad dates in an eval block, falling back to assigning a
floating timezone. However, in the subsequent call to output_pref we try to set
the timezone a second time and this time it is not in an eval and so will throw
an internal server error for such dates.

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


More information about the Koha-bugs mailing list