mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 11:21:42 +02:00
* Api - fix authentication loop with password protected email download links
This commit is contained in:
parent
4a37e31102
commit
be7e9c123f
@ -195,9 +195,9 @@ class Sharing
|
|||||||
|
|
||||||
// check password, if required
|
// check password, if required
|
||||||
if ($share['share_passwd'] && (empty($_SERVER['PHP_AUTH_PW']) ||
|
if ($share['share_passwd'] && (empty($_SERVER['PHP_AUTH_PW']) ||
|
||||||
!(Api\Auth::compare_password($_SERVER['PHP_AUTH_PW'], $share['share_passwd'], 'crypt') ||
|
!(Auth::compare_password($_SERVER['PHP_AUTH_PW'], $share['share_passwd'], 'crypt') ||
|
||||||
Api\Header\Authenticate::decode_password($_SERVER['PHP_AUTH_PW']) &&
|
Header\Authenticate::decode_password($_SERVER['PHP_AUTH_PW']) &&
|
||||||
Api\Auth::compare_password($_SERVER['PHP_AUTH_PW'], $share['share_passwd'], 'crypt'))))
|
Auth::compare_password($_SERVER['PHP_AUTH_PW'], $share['share_passwd'], 'crypt'))))
|
||||||
{
|
{
|
||||||
$realm = 'EGroupware share '.$share['share_token'];
|
$realm = 'EGroupware share '.$share['share_token'];
|
||||||
header('WWW-Authenticate: Basic realm="'.$realm.'"');
|
header('WWW-Authenticate: Basic realm="'.$realm.'"');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user