소스 검색

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


불러오는 중...
취소
저장