diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-03-23 13:28:33 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-03-23 13:28:33 +1300 |
commit | ed74ed24a008ecc866e64c22e0b938d8ee1a4f1c (patch) | |
tree | 3f5ffbedb2c0dd7cec9902f1ff6adc43f59d0c60 /libmproxy/flow.py | |
parent | 45ab22f0d9b75a6cdfa123d206243e4eb2d40d41 (diff) | |
download | mitmproxy-ed74ed24a008ecc866e64c22e0b938d8ee1a4f1c.tar.gz mitmproxy-ed74ed24a008ecc866e64c22e0b938d8ee1a4f1c.tar.bz2 mitmproxy-ed74ed24a008ecc866e64c22e0b938d8ee1a4f1c.zip |
Add error indications to GridEditor.
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r-- | libmproxy/flow.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 59520167..5ff12b5b 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -44,6 +44,10 @@ class ReplaceHooks: cpatt = filt.parse(fpatt) if not cpatt: return False + try: + re.compile(rex) + except re.error: + return False self.lst.append((fpatt, rex, s, cpatt)) return True |