mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use case in-sensitive matching for sec-websocket-key header #7454
This commit is contained in:
@@ -762,7 +762,7 @@ class websocket_service extends service {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!preg_match("/Sec-WebSocket-Key: (.*)\r\n/", $request_header, $matches)) {
|
||||
if (!preg_match("/Sec-WebSocket-Key: (.*)\r\n/i", $request_header, $matches)) {
|
||||
throw new invalid_handshake_exception($resource, "Invalid WebSocket handshake");
|
||||
}
|
||||
$key = trim($matches[1]);
|
||||
|
||||
Reference in New Issue
Block a user