]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 3 Sep 2020 15:23:13 +0000 (15:23 +0000)
commit12a02a23493062a768e60333b13b323703ea6c74
treeb027bab66a62d8fdba06402efbabcb981ae36aa2
parent75118284ed4007d024a4d6a70b970de28ee48ea1
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>
(cherry picked from commit 7a53c5f04cf2bb03734c82e9f964f108f9198d28)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Util/Navigation.pm
t/Koha/Util/Navigation.t