mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
This commit is contained in:
parent
ef7a388958
commit
cca1b3e58b
@ -296,7 +296,8 @@ class Base
|
||||
'home' => str_replace(array('\\\\', '\\'), array('', '/'), $GLOBALS['egw_info']['user']['homedirectory'] ?? ''),
|
||||
);
|
||||
// check if we have a (base64 encoded) fallback-auth GET parameter and need to use it
|
||||
if (empty($GLOBALS['egw_info']['user']['passwd']) && strpos(($query=Vfs::parse_url($_path, PHP_URL_QUERY)), 'fallback-auth=') !== false)
|
||||
if (empty($GLOBALS['egw_info']['user']['passwd']) && ($query=Vfs::parse_url($_path, PHP_URL_QUERY)) &&
|
||||
strpos($query, 'fallback-auth=') !== false)
|
||||
{
|
||||
parse_str($query, $query_params);
|
||||
if (!empty($query_params['fallback-auth']) && ($raw = base64_decode($query_params['fallback-auth'])) && strpos($raw, ':') !== false)
|
||||
|
Loading…
Reference in New Issue
Block a user