mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix: replace mb_strtolower with strtolower in admin import (mbstring unavailable in php8.4-fpm)
This commit is contained in:
@@ -70,7 +70,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
|
||||
}
|
||||
|
||||
// 2. Try alias map (lowercase key)
|
||||
$key = mb_strtolower($raw, 'UTF-8');
|
||||
$key = strtolower($raw);
|
||||
if (isset($orientationAliases[$key])) {
|
||||
$raw = $orientationAliases[$key];
|
||||
}
|
||||
@@ -108,7 +108,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
|
||||
if ($raw === '') return null;
|
||||
|
||||
// 1. Try alias map (lowercase key)
|
||||
$key = mb_strtolower($raw, 'UTF-8');
|
||||
$key = strtolower($raw);
|
||||
if (isset($apAliases[$key])) {
|
||||
$raw = $apAliases[$key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user