]> git.koha-community.org Git - koha.git/commit
Bug 26127: local_referer should not compare with OPACBaseURL case insensitive
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 3 Aug 2020 13:07:24 +0000 (15:07 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 Aug 2020 12:47:44 +0000 (14:47 +0200)
commit7a53c5f04cf2bb03734c82e9f964f108f9198d28
treea0f37e4ae00aac67880bdbfc0af558178f01872c
parent9509e834de14b3fd88296143032100f2b1c907fe
Bug 26127: local_referer should not compare with OPACBaseURL case insensitive

In our test data we have OPACBaseURL that is filled with http://kohadev.myDNSname.org:8080,
but the CGI referer in local_referer is lowercase
We should compare it without case sensitivity

Test plan:
- Use koha-testing-docker
- Notice the value of OPACBaseURL
=> http://kohadev.myDNSname.org:8080
- Use the "reports a problem" feature at the OPAC
- Notice that the "Problem found on page" is correctly filled with the
referer

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Util/Navigation.pm
t/Koha/Util/Navigation.t