From 737c135996ee5f365f8bcfd7f7ba00a27cc99fc4 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 31 Aug 2020 21:32:00 +0200 Subject: [PATCH] More robust logic to pass procedures to the index.html template --- platypush/backend/http/templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/backend/http/templates/index.html b/platypush/backend/http/templates/index.html index d7a7fce5..4c7a31d1 100644 --- a/platypush/backend/http/templates/index.html +++ b/platypush/backend/http/templates/index.html @@ -17,10 +17,9 @@ has_ssl: {{ 'true' if has_ssl else 'false' }}, templates: JSON.parse('{{ utils.to_json(templates)|safe }}'), scripts: JSON.parse('{{ utils.to_json(scripts)|safe }}'), - procedures: JSON.parse('{{ procedures.replace("\'", "\\\'")|safe }}'), + procedures: JSON.parse({{ utils.to_json(procedures)|safe }}), }; - var __plugins__ = JSON.parse('{{ utils.to_json(plugins)|safe }}'); var __backends__ = JSON.parse('{{ utils.to_json(backends)|safe }}');