forked from extern/egroupware
use egw_digest_auth::decode_password to fix password containing non-ascii chars
This commit is contained in:
parent
e8d1c874e6
commit
d14605b91a
@ -140,7 +140,9 @@ class egw_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']) ||
|
||||||
!auth::compare_password($_SERVER['PHP_AUTH_PW'], $share['share_passwd'], 'crypt')))
|
!(auth::compare_password($_SERVER['PHP_AUTH_PW'], $share['share_passwd'], 'crypt') ||
|
||||||
|
egw_digest_auth::decode_password($_SERVER['PHP_AUTH_PW']) &&
|
||||||
|
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…
Reference in New Issue
Block a user