[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/VFS - OSFileSystem.py:1.1.2.9

Stephan Richter srichter@cbu.edu
Wed, 3 Apr 2002 09:37:33 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Server/VFS
In directory cvs.zope.org:/tmp/cvs-serv20611/VFS

Modified Files:
      Tag: Zope3-Server-Branch
	OSFileSystem.py 
Log Message:
Okay, I just added rename functionality to the server, which means that the
new version of the FTP server handles now more commands than the old one!


=== Zope3/lib/python/Zope/Server/VFS/OSFileSystem.py 1.1.2.8 => 1.1.2.9 ===
         # We just ignore it. 
         path = self.path_module.normpath(path)
-        if len(path) > 1 and path[:3] == '..':
-            path = '/'
-        elif len(path) > 2 and path[:3] == '../':
+        if path.startswith('..') or path.startswith('../'):
             path = '/'
         return path