Permalink
Browse files

extra directory access for upload_file

  • Loading branch information...
1 parent 8bfa546 commit 5b2bac4220fe7cd05b4f208da7f5478387e0ead0 @wardi committed Jul 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 filebrowser/views.py
View
1 filebrowser/views.py
@@ -300,6 +300,7 @@ def _upload_file(request):
if request.FILES:
filedata = request.FILES['Filedata']
filedata.name = convert_filename(filedata.name)
+ _check_access(request, abs_path, filedata.name)
# PRE UPLOAD SIGNAL
filebrowser_pre_upload.send(sender=request, path=request.POST.get('folder'), file=filedata)
# HANDLE UPLOAD

0 comments on commit 5b2bac4

Please sign in to comment.