From 744084d2ad2eec52dbfba09d1442ee3f1d2a72ed Mon Sep 17 00:00:00 2001 From: Toby Evans Date: Thu, 3 Aug 2017 10:46:35 +1200 Subject: [PATCH 1/2] Unescape the `path` variable so that characters like { and } are not escaped to html entities. --- APIBlueprintGenerator.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APIBlueprintGenerator.coffee b/APIBlueprintGenerator.coffee index 5b61295..5575dce 100644 --- a/APIBlueprintGenerator.coffee +++ b/APIBlueprintGenerator.coffee @@ -99,7 +99,7 @@ APIBlueprintGenerator = -> if !path path = '/' - path + unescape(path) @generate = (context) -> paw_request = context.getCurrentRequest() From 77597a3468d25981c387508bbcc30a8700d4fe20 Mon Sep 17 00:00:00 2001 From: Toby Evans Date: Thu, 3 Aug 2017 10:47:33 +1200 Subject: [PATCH 2/2] Update APIBlueprintGenerator.js --- APIBlueprintGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APIBlueprintGenerator.js b/APIBlueprintGenerator.js index f955668..91b8fc4 100644 --- a/APIBlueprintGenerator.js +++ b/APIBlueprintGenerator.js @@ -91,7 +91,7 @@ if (!path) { path = '/'; } - return path; + return unescape(path); }; this.generate = function(context) { var paw_request, template, url;