Ver código fonte

Fix 500 error on certain searches due to binary data in the log files

master
JustAnotherArchivist 1 ano atrás
pai
commit
fd68f1ca7a
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Ver arquivo

@@ -1116,7 +1116,7 @@ class WebServer:
# So instead, use a wrapper script in Bash which sets the niceness and memory limit.
cmd = [
os.path.join('.', os.path.dirname(__file__), 'nicegrep'), str(self.config['web']['search']['nice']), str(self.config['web']['search']['maxMemory']),
'--fixed-strings', '--recursive', '--with-filename', '--null', '--line-number',
'--fixed-strings', '--recursive', '--with-filename', '--null', '--line-number', '--text',
]
if 'casesensitive' not in request.query:
cmd.append('--ignore-case')


Carregando…
Cancelar
Salvar