Bug 38375: Splitting SIP2SortBinMapping syspref does not support all operating systems' line endings

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3407dc28a3)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lari Strand 2025-01-21 10:22:51 +02:00 committed by Paul Derscheid
parent 39e76c8b72
commit 3feb31a50c
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ sub _get_sort_bin {
# Get the mapping and split on newlines
my $raw_map = C4::Context->preference('SIP2SortBinMapping');
return unless $raw_map;
@lines = split /\r\n/, $raw_map;
@lines = split /[\r\n]+/, $raw_map;
}
# Iterate over the mapping. The first hit wins.