mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	The "first" filter can return an unsafe string for safe input ( {{"<"|first}} ), so change is_safe to False. Refs #5567.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -433,7 +433,7 @@ def first(value): | |||||||
|         return value[0] |         return value[0] | ||||||
|     except IndexError: |     except IndexError: | ||||||
|         return u'' |         return u'' | ||||||
| first.is_safe = True | first.is_safe = False | ||||||
|  |  | ||||||
| def join(value, arg): | def join(value, arg): | ||||||
|     """Joins a list with a string, like Python's ``str.join(list)``.""" |     """Joins a list with a string, like Python's ``str.join(list)``.""" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user