Search for zip file not above of root_path

This commit is contained in:
Cédric Krier committed 2011-05-23 17:03:08 +02:00
1 parent d80abe4548
commit d174df442b
1 file changed
+2
+2
View File
@@ -119,6 +119,8 @@ def file_open(name, mode="r", subdir='modules'):
name2 = False
while True:
head, tail = os.path.split(head)
if head == root_path:
break
if not tail:
break
if zipname: