Преглед изворни кода

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

master
JustAnotherArchivist пре 1 година
родитељ
комит
fd68f1ca7a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Прегледај датотеку

@@ -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')


Loading…
Откажи
Сачувај