Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixes #14715 -- More informative ValueError for safe_join util. Thank…

…s btubbs.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aff9ff9bf52c71790cd1f37eb0f6a426b98e8338 1 parent 1883248
@SmileyChris SmileyChris authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/
4 django/utils/
@@ -41,6 +41,6 @@ def safe_join(base, *paths):
# equal to base_path).
if not final_path.startswith(base_path) \
or final_path[base_path_len:base_path_len+1] not in ('', sep):
- raise ValueError('the joined path is located outside of the base path'
- ' component')
+ raise ValueError('The joined path (%s) is located outside of the base '
+ 'path component (%s)' % (final_path, base_path))
return final_path

0 comments on commit aff9ff9

Please sign in to comment.
Something went wrong with that request. Please try again.