]> git.koha-community.org Git - koha.git/commit
Bug 34587: Fix url validation
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 8 Sep 2023 14:33:50 +0000 (14:33 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Oct 2023 19:46:19 +0000 (16:46 -0300)
commitebc98070d6b483b636a6060643020f9731d9e1d3
tree08f09adb17308be91b9f98c6c4759376833b1017
parent3ab40366363cd77446d208163ec9951bf687c22a
Bug 34587: Fix url validation

We need to check whether the url ends in a trailing "/" and also whether it ends in "/reports" for a SUSHI harvest. Two new functions are added to manage this and prevent failed harvests.

report_type is also now lowercase in the url and the dates are truncated to YYYY-MM format

Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/ERM/EUsage/UsageDataProvider.pm