From 7b983a47ce9fa9a1d0b01dfff813a22d8b19aed4 Mon Sep 17 00:00:00 2001 From: Fabio Iotti Date: Wed, 20 Dec 2017 08:59:09 +0100 Subject: [PATCH] Fix: handle quotes and double quotes --- aws-api-gateway-bodyparser.vtl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-api-gateway-bodyparser.vtl b/aws-api-gateway-bodyparser.vtl index 5b9e525..8a3c70b 100644 --- a/aws-api-gateway-bodyparser.vtl +++ b/aws-api-gateway-bodyparser.vtl @@ -25,7 +25,7 @@ #set( $key = $util.urlDecode($param[0]) ) #if( $param.size() > 1 ) - #set( $value = $util.urlDecode($param[1]) ) + #set( $value = $util.escapeJavaScript($util.urlDecode($param[1])).replaceAll("\\'", "'") ) #else #set( $value = "" ) #end