##// END OF EJS Templates
don't normalize path if it's empty on adding a file throught web interface
marcink -
r3591:2b3a553e beta
parent child Browse files
Show More
@@ -377,6 +377,7 b' class FilesController(BaseRepoController'
377 'contain .. in path'), category='warning')
377 'contain .. in path'), category='warning')
378 return redirect(url('changeset_home', repo_name=c.repo_name,
378 return redirect(url('changeset_home', repo_name=c.repo_name,
379 revision='tip'))
379 revision='tip'))
380 if location:
380 location = os.path.normpath(location)
381 location = os.path.normpath(location)
381 filename = os.path.basename(filename)
382 filename = os.path.basename(filename)
382 node_path = os.path.join(location, filename)
383 node_path = os.path.join(location, filename)
General Comments 0
You need to be logged in to leave comments. Login now