mirror of
https://github.com/django/django.git
synced 2025-06-01 09:39:12 +00:00
Corrected exception type in safe_join()'s docstring.
This commit is contained in:
parent
01ae9d4ca9
commit
2a57785363
@ -11,8 +11,8 @@ def safe_join(base, *paths):
|
|||||||
Join one or more path components to the base path component intelligently.
|
Join one or more path components to the base path component intelligently.
|
||||||
Return a normalized, absolute version of the final path.
|
Return a normalized, absolute version of the final path.
|
||||||
|
|
||||||
Raise ValueError if the final path isn't located inside of the base path
|
Raise SuspiciousFileOperation if the final path isn't located inside of the
|
||||||
component.
|
base path component.
|
||||||
"""
|
"""
|
||||||
final_path = abspath(join(base, *paths))
|
final_path = abspath(join(base, *paths))
|
||||||
base_path = abspath(base)
|
base_path = abspath(base)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user