Fix a dumb
This commit is contained in:
parent
31f94efdd8
commit
392dc160a0
|
@ -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…
Reference in New Issue