Browse Source

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

master
JustAnotherArchivist 1 year ago
parent
commit
fd68f1ca7a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py View File

@@ -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…
Cancel
Save