﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17135	stringfilter decorator is incompatible with is_safe / needs_autoescape flags	Aymeric Augustin	nobody	"Defining a template filter like this doesn't work:

{{{
@register.filter
@stringfilter
def passthrough(value):
    return value
passthrough.is_safe = True
}}}

The problem is that the `stringfilter` decorator keeps a pointer to the underlying function, and the template engine uses it.

However, the last line only sets `is_safe` on the function returned by the decorator, not on the underlying function. As a consequence, the template engine doesn't know that the filter is safe."	Bug	closed	Template system	1.3	Normal	fixed			Unreviewed	0	0	0	0	0	0
