1
0
mirror of https://github.com/django/django.git synced 2025-04-05 05:56:42 +00:00
Aymeric Augustin b8ba73cd0c Raised SuspiciousFileOperation in safe_join.
Added a test for the condition safe_join is designed to prevent.

Previously, a generic ValueError was raised. It was impossible to tell
an intentional exception raised to implement safe_join's contract from
an unintentional exception caused by incorrect inputs or unexpected
conditions. That resulted in bizarre exception catching patterns, which
this patch removes.

Since safe_join is a private API and since the change is unlikely to
create security issues for users who use it anyway -- at worst, an
uncaught SuspiciousFileOperation exception will bubble up -- it isn't
documented.
2014-11-11 19:05:14 +01:00
..
2014-10-22 21:21:02 -04:00
2013-12-24 12:25:17 +01:00
2014-10-08 18:10:50 -04:00
2014-10-08 05:11:09 +07:00
2014-08-18 13:44:10 -04:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2013-12-24 12:25:17 +01:00
2014-11-04 11:27:35 -05:00
2014-02-28 09:54:53 +01:00
2013-11-02 23:48:47 -05:00
2013-11-02 23:48:47 -05:00
2014-11-04 09:26:40 +00:00