summaryrefslogtreecommitdiff
path: root/sockets.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2026-09-08 21:15:59 +0100
committerLuke Bratch <luke@bratch.co.uk>2026-09-08 21:15:59 +0100
commit2fe210eb69ba7caf78864fe3664cb3c52a887c74 (patch)
tree81239e2db92478c2a43813e662315ff8edddd0a7 /sockets.h
parent0714a93c9d46c18a1a1b4d48b9b7b92465a3a408 (diff)
Handle client PASS messages that contain spaces and/or a leading colon.HEADmaster
1. The password is a freeform string that might contain spaces anywhere, so use the raw string rather than the space-separated tokens. 2. If there is a leading colon then always strip it: a) Some clients always send one. b) Some clients send one if the password contains a space or has a leading colon itself. c) Clients that don't send one if the password contains a leading colon won't work unless the user uses two leading colons.
Diffstat (limited to 'sockets.h')
0 files changed, 0 insertions, 0 deletions