overtrue/websocket

Validate key length and base 64...

todo opened this issue · 0 comments

todo commented

websocket/src/Server.php

Lines 117 to 122 in 21e6131

// @todo Validate key length and base 64...
$responseKey = base64_encode(pack('H*', sha1($key.self::KEY_SALT)));
$headers = [
'HTTP/1.1 101 Switching Protocols',
'Upgrade: websocket',


This issue was generated by todo based on a @todo comment in 21e6131. It's been assigned to @overtrue because they committed the code.