Fix escaping of URL as a javacsript string

This commit is contained in:
Benjamin Dauvergne 2014-12-01 14:31:26 +01:00
parent 25d483e551
commit e782b65ee6
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var next = getParameterByName('next');
window.opener.location.href = {% if redirect_to %}"{{ redirect_to }}" {% else %}next || '/'{% endif %};
window.opener.location.href = {% if redirect_to %}"{{ redirect_to|escapejs }}" {% else %}next || '/'{% endif %};
window.close();
</script>
</head>