Commit b7478769 authored by Vincent Pelletier's avatar Vincent Pelletier

Update regex to prevent user from adding extra characters outside of the...

Update regex to prevent user from adding extra characters outside of the strict "ip:port" format. Such caracters could lead to an impossible to remove node in the list...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14590 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6f96deb
...@@ -61,7 +61,7 @@ except ImportError: ...@@ -61,7 +61,7 @@ except ImportError:
pass pass
# minimal IP:Port regexp # minimal IP:Port regexp
NODE_RE = re.compile('\d+\.\d+\.\d+\.\d+:\d+') NODE_RE = re.compile('^\d+\.\d+\.\d+\.\d+:\d+$')
# Using a RAM property (not a property of an instance) allows # Using a RAM property (not a property of an instance) allows
# to prevent from storing a state in the ZODB (and allows to restart...) # to prevent from storing a state in the ZODB (and allows to restart...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment