From f8361845693a691e04e843b8fb475ab2dd2fe8e2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 12 Jan 2022 17:07:24 +0100 Subject: api: Don't use mb_strtolower --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api.php') diff --git a/api.php b/api.php index 9e43a42a..23328993 100644 --- a/api.php +++ b/api.php @@ -13,7 +13,7 @@ if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%') // Autoload classes from ./inc which adhere to naming scheme .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; -- cgit v1.2.3-55-g7522