diff --git a/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html b/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html index 38426bde7..1ac57cd92 100644 --- a/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html +++ b/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html @@ -48,7 +48,7 @@ var time = '{{ interval }}' var error = '{{ error }}' var auto_redirect = '{{ auto_redirect }}' - + if (error) { message = error } else { @@ -62,7 +62,7 @@ time--; setTimeout(redirect_page, 1000); } else { - window.location.href = "{{ redirect_url }}"; + window.location.href = '{{ redirect_url|escapejs }}'; } } @@ -71,4 +71,3 @@ } {% endblock %} - diff --git a/apps/templates/flash_message_standalone.html b/apps/templates/flash_message_standalone.html index da34e1aae..97a75e67a 100644 --- a/apps/templates/flash_message_standalone.html +++ b/apps/templates/flash_message_standalone.html @@ -52,7 +52,7 @@ {% else %} message = '{{ message|safe }}' {% endif %} - var redirect_url = '{{ redirect_url }}' + var redirect_url = '{{ redirect_url|escapejs }}' function redirect_page() { if (time >= 0) { @@ -69,4 +69,3 @@ {% endif %} {% endblock %} -