We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87b7e08 + 391406e commit d94cf8bCopy full SHA for d94cf8b
flask_fastspring.py
@@ -264,12 +264,12 @@ def milliseconds_to_datetime(m):
264
function fastspringOnPopupWebhookReceived(data) {
265
if (!data) return;
266
var xhr = new XMLHttpRequest();
267
- xhr.open("POST", "{{ webhook }}", true);
+ xhr.open("POST", "{{ webhook | safe }}", true);
268
xhr.setRequestHeader("Content-Type", "application/json");
269
xhr.onreadystatechange = function() {
270
if (xhr.readyState === XMLHttpRequest.DONE) {
271
if (xhr.status === 200) {
272
- fastspringRedirectUrl = '{{ request.url }}';
+ fastspringRedirectUrl = '{{ request.url | safe }}';
273
} else if (xhr.status === 201 || (301 <= xhr.status && xhr.status <= 303)) {
274
fastspringRedirectUrl = xhr.getResponseHeader("Location");
275
} else {
0 commit comments