diff options
author | Simon Rettberg | 2022-01-12 17:07:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-03-09 15:06:54 +0100 |
commit | f8361845693a691e04e843b8fb475ab2dd2fe8e2 (patch) | |
tree | ee8820b2bf3aa607a3a3560b4f151c68cbe2eb31 /api.php | |
parent | [serversetup-bwlp-ipxe] Add GRUB localboot method (diff) | |
download | slx-admin-f8361845693a691e04e843b8fb475ab2dd2fe8e2.tar.gz slx-admin-f8361845693a691e04e843b8fb475ab2dd2fe8e2.tar.xz slx-admin-f8361845693a691e04e843b8fb475ab2dd2fe8e2.zip |
api: Don't use mb_strtolower
Diffstat (limited to 'api.php')
-rw-r--r-- | api.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%') // Autoload classes from ./inc which adhere to naming scheme <lowercasename>.inc.php spl_autoload_register(function ($class) { - $file = 'inc/' . preg_replace('/[^a-z0-9]/', '', mb_strtolower($class)) . '.inc.php'; + $file = 'inc/' . strtolower(preg_replace('/[^A-Za-z0-9]/', '', $class)) . '.inc.php'; if (!file_exists($file)) return; require_once $file; |