From b3f99ec9fefaaac1d9bbd7c99d09226623cb57e5 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 17 Feb 2006 17:56:46 +0000 Subject: [PATCH] Fixed #1366 -- Static-file view now escapes file names. Thanks, Kieran Holland git-svn-id: http://code.djangoproject.com/svn/django/trunk@2322 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/static.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/views/static.py b/django/views/static.py index 01eaec8990..536720f5e8 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -56,13 +56,13 @@ DEFAULT_DIRECTORY_INDEX_TEMPLATE = """ - Index of {{ directory }} + Index of {{ directory|escape }} -

Index of {{ directory }}

+

Index of {{ directory|escape }}