[Zodb-checkins] CVS: Zope/lib/python/ZConfig - datatypes.py:1.16
Fred Drake
cvs-admin at zope.org
Fri Oct 31 11:15:22 EST 2003
Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv29509
Modified Files:
datatypes.py
Log Message:
Be more strict about what constitutes a valid host name.
=== Zope/lib/python/ZConfig/datatypes.py 1.15 => 1.16 ===
--- Zope/lib/python/ZConfig/datatypes.py:1.15 Fri Jul 11 10:44:40 2003
+++ Zope/lib/python/ZConfig/datatypes.py Fri Oct 31 11:14:51 2003
@@ -156,6 +156,8 @@
try:
port = port_number(s)
except ValueError:
+ if len(s.split()) != 1:
+ raise ValueError("not a valid host name: " + repr(s))
host = s.lower()
return host, port
More information about the Zodb-checkins
mailing list