Skip to content

Commit 5877c0a

Browse files
authored
Merge pull request #312 from mschwager/master
Fix #309, avoid catastrophic backtracking in searchcommands.internals
2 parents a97c1d8 + f7164a9 commit 5877c0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/searchcommands/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def replace(match):
233233

234234
_escaped_character_re = re.compile(r'(\\.|""|[\\"])')
235235

236-
_fieldnames_re = re.compile(r"""("(?:\\.|""|[^"])+"|(?:\\.|[^\s"])+)""")
236+
_fieldnames_re = re.compile(r"""("(?:\\.|""|[^"\\])+"|(?:\\.|[^\s"])+)""")
237237

238238
_options_re = re.compile(r"""
239239
# Captures a set of name/value pairs when used with re.finditer

0 commit comments

Comments
 (0)