mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Updating the ssl_cipher and ssl_type at the same time can leave ssl_type empty, so do them separately https://sourceforge.net/p/webadmin/bugs/4622/
This commit is contained in:
@@ -86,9 +86,13 @@ else {
|
||||
# Set SSL fields
|
||||
if ($mysql_version >= 5 && defined($in{'ssl_type'})) {
|
||||
&execute_sql_logged($master_db,
|
||||
"update user set ssl_type = ? and ssl_cipher = ? ".
|
||||
"update user set ssl_type = ? ".
|
||||
"where user = ? and host = ?",
|
||||
$in{'ssl_type'}, $in{'ssl_cipher'}, $user, $host);
|
||||
$in{'ssl_type'}, $user, $host);
|
||||
&execute_sql_logged($master_db,
|
||||
"update user set ssl_cipher = ? ".
|
||||
"where user = ? and host = ?",
|
||||
$in{'ssl_cipher'}, $user, $host);
|
||||
}
|
||||
}
|
||||
&execute_sql_logged($master_db, 'flush privileges');
|
||||
|
||||
Reference in New Issue
Block a user