From 814df9bc6c32f3a62b8881d40022a5876d82cc1e Mon Sep 17 00:00:00 2001 From: Dan Shultz Date: Wed, 27 Jul 2016 16:34:32 -0500 Subject: [PATCH] Escape description and author_name in post_gen hook Fixes #698 --- CONTRIBUTORS.rst | 1 + hooks/post_gen_project.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index fe0d6e2b..1eefcdbe 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -68,6 +68,7 @@ Listed in alphabetical order. Collederas `@Collederas`_ Cristian Vargas `@cdvv7788`_ Cullen Rhodes `@c-rhodes`_ + Dan Shultz `@shultz`_ Daniele Tricoli `@eriol`_ David Díaz `@ddiazpinto`_ @DavidDiazPinto Davur Clementsen `@dsclementsen`_ @davur diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 8a89c1d6..300da58b 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -177,8 +177,8 @@ def add_webpack(): 'project_dir': '{{ cookiecutter.project_slug }}', 'static_root': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}', 'production_output_path': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}/dist/', - 'author_name': '{{ cookiecutter.author_name }}', - 'description': '{{ cookiecutter.description }}', + 'author_name': '{{ cookiecutter.author_name | escape }}', + 'description': '{{ cookiecutter.description | escape }}', 'version': '{{ cookiecutter.version }}', 'existing_project': 'y', 'css_extension': 'sass',