mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-15 21:12:11 +00:00
Allow backslashes to fix namespaces in autoloader (#7766)
This commit is contained in:
@@ -367,7 +367,7 @@ class auto_loader {
|
||||
private function loader($class_name): bool {
|
||||
|
||||
//sanitize the class name
|
||||
$class_name = preg_replace('/[^a-zA-Z0-9_]/', '', $class_name);
|
||||
$class_name = preg_replace('/[^a-zA-Z0-9_\\\\]/', '', $class_name);
|
||||
|
||||
//find the path using the class_name as the key in the classes array
|
||||
if (isset($this->classes[$class_name])) {
|
||||
|
||||
Reference in New Issue
Block a user