summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2015-12-23 17:08:40 +0000
committerTim Graham <timograham@gmail.com>2015-12-24 09:54:33 -0500
commit77b8d8cb6d6d6345f479c68c4892291c1492ba7e (patch)
treea42ca617d80dcaaa3db36069688e141e154c4dc1 /django
parenta856555df2a1b4ddad8bf21243de0bcbcc12fb20 (diff)
Discouraged use of /tmp with predictable names.
The use of predictable filenames in /tmp often leads to symlink attacks so remove the most obvious use of them in the docs.
Diffstat (limited to 'django')
-rw-r--r--django/db/models/fields/files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py
index 3b39ba1f56..de1e11535c 100644
--- a/django/db/models/fields/files.py
+++ b/django/db/models/fields/files.py
@@ -149,7 +149,7 @@ class FileDescriptor(object):
Assigns a file object on assignment so you can do::
- >>> with open('/tmp/hello.world', 'r') as f:
+ >>> with open('/path/to/hello.world', 'r') as f:
... instance.file = File(f)
"""
def __init__(self, field):