projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Bug 26127: local_referer should not compare with OPACBaseURL case insensitive
[koha.git]
/
Koha
/
Util
/
Navigation.pm
diff --git
a/Koha/Util/Navigation.pm
b/Koha/Util/Navigation.pm
index
6f9b304
..
75bde71
100644
(file)
--- a/
Koha/Util/Navigation.pm
+++ b/
Koha/Util/Navigation.pm
@@
-59,7
+59,7
@@
sub local_referer {
# Try ..BaseURL first, otherwise use CGI::url
if( $base ) {
- if( substr($referer, 0, length($base)) eq $base &&
+ if( $referer =~ m|^\Q$base\E|i &&
$referer =~ /\/cgi-bin\/koha\// )
{
$rv = substr( $referer, length($base) );