Show More
@@ -449,7 +449,7 b' class ScmModel(BaseModel):' | |||||
449 | return tip |
|
449 | return tip | |
450 |
|
450 | |||
451 | def _sanitize_path(self, f_path): |
|
451 | def _sanitize_path(self, f_path): | |
452 | if f_path.startswith('/') or f_path.startswith('.') or '../' in f_path: |
|
452 | if f_path.startswith('/') or f_path.startswith('./') or '../' in f_path: | |
453 | raise NonRelativePathError('%s is not an relative path' % f_path) |
|
453 | raise NonRelativePathError('%s is not an relative path' % f_path) | |
454 | if f_path: |
|
454 | if f_path: | |
455 | f_path = os.path.normpath(f_path) |
|
455 | f_path = os.path.normpath(f_path) |
General Comments 0
You need to be logged in to leave comments.
Login now