mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to also check if session keys are set
This commit is contained in:
@@ -125,7 +125,7 @@ Net::WebSocket::Server->new(
|
||||
my $dsess = &encode_base64($main::session_id);
|
||||
$key =~ s/\s//g;
|
||||
$dsess =~ s/\s//g;
|
||||
if ($key ne $dsess) {
|
||||
if (!$key || !$dsess || $key ne $dsess) {
|
||||
print STDERR "Key $key does not match session ID $dsess\n";
|
||||
$conn->disconnect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user