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:
Jamie Cameron
2015-06-29 21:21:51 -07:00
parent 6efc7363b8
commit e9e453cc2d

View File

@@ -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');