aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-08-17 10:08:02 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-08-17 10:08:02 +1200
commit95968ad558b9f0d6f0455298b3c7e245e39bbd73 (patch)
tree8b533c8025424a984165187a0789eeacf36f4e55
parent13cb0cab90a85822610e24725b5fb23ab1aa681c (diff)
downloadmitmproxy-95968ad558b9f0d6f0455298b3c7e245e39bbd73.tar.gz
mitmproxy-95968ad558b9f0d6f0455298b3c7e245e39bbd73.tar.bz2
mitmproxy-95968ad558b9f0d6f0455298b3c7e245e39bbd73.zip
Don't allow negative integer offsets for now.
-rw-r--r--libpathod/rparse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py
index 1a615950..3eaf2569 100644
--- a/libpathod/rparse.py
+++ b/libpathod/rparse.py
@@ -113,7 +113,8 @@ DATATYPES = dict(
)
-v_integer = pp.Regex(r"[+-]?\d+")\
+#v_integer = pp.Regex(r"[+-]?\d+")\
+v_integer = pp.Regex(r"\d+")\
.setName("integer")\
.setParseAction(lambda toks: int(toks[0]))