Changeset - 2b3a553eaaad
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-03-26 12:59:11
marcin@python-works.com
don't normalize path if it's empty on adding a file throught web interface
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/files.py
Show inline comments
 
@@ -377,7 +377,8 @@ class FilesController(BaseRepoController
 
                          'contain .. in path'), category='warning')
 
                return redirect(url('changeset_home', repo_name=c.repo_name,
 
                                    revision='tip'))
 
            location = os.path.normpath(location)
 
            if location:
 
                location = os.path.normpath(location)
 
            filename = os.path.basename(filename)
 
            node_path = os.path.join(location, filename)
 
            author = self.rhodecode_user.full_contact
0 comments (0 inline, 0 general)