Skip to content

Commit f7164a9

Browse files
committed
Fix #309, avoid catastrophic backtracking in searchcommands.internals
1 parent 51bd6b8 commit f7164a9

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
@@ -232,7 +232,7 @@ def replace(match):
232232

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

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

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

0 commit comments

Comments
 (0)