diff options
author | Simon Rettberg | 2022-01-12 17:07:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-01-12 17:07:24 +0100 |
commit | b8d8d32d5ba30b97e7c89a3d1a211eec6fb878ef (patch) | |
tree | a1cbc6c7ddb08c529c3858d7e7723f86c689928b | |
parent | [serversetup-bwlp-ipxe] Add GRUB localboot method (diff) | |
download | slx-admin-b8d8d32d5ba30b97e7c89a3d1a211eec6fb878ef.tar.gz slx-admin-b8d8d32d5ba30b97e7c89a3d1a211eec6fb878ef.tar.xz slx-admin-b8d8d32d5ba30b97e7c89a3d1a211eec6fb878ef.zip |
api: Don't use mb_strtolower
-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; |