Commit fc9ce02
committed
Deny gracefully instead of crashing on non-numeric socket channel id
Clients occasionally join a socketio room before a case is selected
(e.g. "case-null"), producing a non-numeric id. That's a premature
join, not an authorization bypass attempt, so it should be denied
gracefully rather than raising and killing the event-handler thread.1 parent 211789a commit fc9ce02
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
417 | 425 | | |
418 | | - | |
| 426 | + | |
419 | 427 | | |
420 | 428 | | |
421 | 429 | | |
| |||
0 commit comments