Fix a dumb

This commit is contained in:
Bryan Ashby 2021-02-04 19:32:28 -07:00
parent 31f94efdd8
commit 392dc160a0
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 1 additions and 1 deletions

View File

@ -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 {