[Zodb-checkins] CVS: Zope/lib/python/ZConfig - datatypes.py:1.13.36.4

Fred Drake cvs-admin at zope.org
Fri Oct 31 11:44:42 EST 2003


Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv1827/lib/python/ZConfig

Modified Files:
      Tag: Zope-2_7-branch
	datatypes.py 
Log Message:
Be more strict about what constitutes a valid host name.


=== Zope/lib/python/ZConfig/datatypes.py 1.13.36.3 => 1.13.36.4 ===
--- Zope/lib/python/ZConfig/datatypes.py:1.13.36.3	Fri Sep 19 17:24:51 2003
+++ Zope/lib/python/ZConfig/datatypes.py	Fri Oct 31 11:44:10 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