ZP-765 We should not use array deference because it might not be safe yet....

ZP-765 We should not use array deference because it might not be safe yet. Released under the Affero GNU General Public License (AGPL) version 3.
parent 7c6d03f6
......@@ -166,7 +166,8 @@ class ZLog {
throw new \Exception('The class `'.$logger.'` does not exist.');
}
$user = '['.Utils::SplitDomainUser(strtolower(Request::GetGETUser()))[0].']';
list($user) = Utils::SplitDomainUser(strtolower(Request::GetGETUser()));
$user = '['.$user.']';
self::$logger = new $logger();
self::$logger->SetUser($user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment