Fix escaping of URL as a javacsript string
This commit is contained in:
parent
25d483e551
commit
e782b65ee6
|
@ -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>
|
||||
|
|
Reference in New Issue