# Path: moth/views/base/html_template_view.py
# class HTMLTemplateView(VulnerableTemplateView):
#     '''
#     All vulnerabilities inherit from this template, which will render the data
#     returned by the subclasses, disable anti-CSRF, etc.
#     '''
#     # If the subclass just wants to return static HTML, we give him a shortcut
#     # where he doesn't define the get method, just sets HTML and we'll do the
#     # rest
#     HTML = None
# 
#     def get(self, request, *args, **kwds):
#         if self.HTML is None:
#             raise RuntimeError('HTML needs to be set.')
#         
#         context = self.get_context_data()
#         context['html'] = self.HTML
# 
#         response = render(request, self.template_name, context)
# 
#         for key, value in self.extra_headers.iteritems():
#             response[key] = value
# 
#         return response


from moth.views.base.html_template_view import HTMLTemplateView
                  ' not URL encoded) and content.'
    url_path = u'改.py'
    extra_headers = {'Content-Type': 'text/html; charset=utf-8'}

    HTML = HTML % {'charset': 'utf-8',
                   'body': u'Space filler'}


class UTF8WithECuteView(HTMLTemplateView):
    title = 'UTF-8 test with e cute'
    description = 'UTF-8 test with e cute in filename (link is not URL' \
                  ' encoded)'
    url_path = u'é.py'
    extra_headers = {'Content-Type': 'text/html; charset=utf-8'}

    HTML = HTML % {'charset': 'utf-8',
                   'body': u'Space filler'}


class UTF8WithEncodedUCuteView(HTMLTemplateView):
    title = 'UTF-8 test with encoded u cute'
    description = 'UTF-8 test with u cute in filename (link is URL encoded)'
    url_path = u'vúlnerable.py'
    url_encode_path = True
    extra_headers = {'Content-Type': 'text/html; charset=utf-8'}

    HTML = HTML % {'charset': 'utf-8',
                   'body': u'Space filler'}



# Path: moth/views/base/html_template_view.py
# class HTMLTemplateView(VulnerableTemplateView):
#     '''
#     All vulnerabilities inherit from this template, which will render the data
#     returned by the subclasses, disable anti-CSRF, etc.
#     '''
#     # If the subclass just wants to return static HTML, we give him a shortcut
#     # where he doesn't define the get method, just sets HTML and we'll do the
#     # rest
#     HTML = None
# 
#     def get(self, request, *args, **kwds):
#         if self.HTML is None:
#             raise RuntimeError('HTML needs to be set.')
#         
#         context = self.get_context_data()
#         context['html'] = self.HTML
# 
#         response = render(request, self.template_name, context)
# 
#         for key, value in self.extra_headers.iteritems():
#             response[key] = value
# 
#         return response


# Path: moth/views/vulnerabilities/core/encoding_utf8.py
from moth.views.base.html_template_view import HTMLTemplateView

                  ' not URL encoded) and content.'
    url_path = u'改.py'
    extra_headers = {'Content-Type': 'text/html; charset=utf-8'}

    HTML = HTML % {'charset': 'utf-8',
                   'body': u'Space filler'}


class UTF8WithECuteView(HTMLTemplateView):
    title = 'UTF-8 test with e cute'
    description = 'UTF-8 test with e cute in filename (link is not URL' \
                  ' encoded)'
    url_path = u'é.py'
    extra_headers = {'Content-Type': 'text/html; charset=utf-8'}

    HTML = HTML % {'charset': 'utf-8',
                   'body': u'Space filler'}


class UTF8WithEncodedUCuteView(HTMLTemplateView):
    title = 'UTF-8 test with encoded u cute'
    description = 'UTF-8 test with u cute in filename (link is URL encoded)'
    url_path = u'vúlnerable.py'
    url_encode_path = True
    extra_headers = {'Content-Type': 'text/html; charset=utf-8'}

    HTML = HTML % {'charset': 'utf-8',
                   'body': u'Space filler'}



class UTF8WithEncodedRussianView(HTMLTemplateView):