mirror of
https://github.com/django/django.git
synced 2025-08-16 00:30:47 +00:00
Refs #34100 -- Made file upload tests use Storage.exists() where appropriate.
This commit is contained in:
parent
6e9e7ec472
commit
c179ad9fe7
4 changed files with 17 additions and 9 deletions
|
@ -55,7 +55,7 @@ class TraversalUploadHandler(FileUploadHandler):
|
|||
"""A handler with potential directory-traversal vulnerability."""
|
||||
|
||||
def __init__(self, request=None):
|
||||
from .views import UPLOAD_TO
|
||||
from .tests import UPLOAD_TO
|
||||
|
||||
super().__init__(request)
|
||||
self.upload_dir = UPLOAD_TO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue