mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-29 05:56:08 +02:00
Fix a dumb
This commit is contained in:
parent
31f94efdd8
commit
392dc160a0
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ exports.getModule = class GopherModule extends ServerModule {
|
|||
|
||||
socket.on('data', data => {
|
||||
// sanitize a bit - bots like to inject garbage
|
||||
data = data.replace(/[^ -~]/g, '');
|
||||
data = data.replace(/[^ -~\t\r\n]/g, '');
|
||||
if (data) {
|
||||
this.routeRequest(data, socket);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue