allow blank password
This commit is contained in:
@@ -325,6 +325,9 @@ if (uname.value == '') {
|
|||||||
else {
|
else {
|
||||||
$from_cookie = FALSE;
|
$from_cookie = FALSE;
|
||||||
}
|
}
|
||||||
|
if ($PHP_AUTH_PW == "\xff(blank)") {
|
||||||
|
$PHP_AUTH_PW = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns whether we get authentication settings or not
|
// Returns whether we get authentication settings or not
|
||||||
@@ -389,7 +392,7 @@ if (uname.value == '') {
|
|||||||
$GLOBALS['is_https']);
|
$GLOBALS['is_https']);
|
||||||
// Duration = till the browser is closed for password
|
// Duration = till the browser is closed for password
|
||||||
setcookie('pma_cookie_password',
|
setcookie('pma_cookie_password',
|
||||||
$cfg['Server']['password'],
|
(!empty($cfg['Server']['password'])) ? $cfg['Server']['password'] : "\xff(blank)",
|
||||||
0,
|
0,
|
||||||
$GLOBALS['cookie_path'], '',
|
$GLOBALS['cookie_path'], '',
|
||||||
$GLOBALS['is_https']);
|
$GLOBALS['is_https']);
|
||||||
|
Reference in New Issue
Block a user