From 07927d3c583a273a61444d1fc0460d411db255ba Mon Sep 17 00:00:00 2001 From: Mark Clarkson Date: Sat, 8 Mar 2014 18:10:46 +0000 Subject: [PATCH] Fix for #3 --- SOURCES/nagrestconf-1/rest/index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SOURCES/nagrestconf-1/rest/index.php b/SOURCES/nagrestconf-1/rest/index.php index 8f8ce14..e4a3fe1 100644 --- a/SOURCES/nagrestconf-1/rest/index.php +++ b/SOURCES/nagrestconf-1/rest/index.php @@ -233,7 +233,14 @@ public function processRequest() "," => "`", "\\" => "\\\\", "%2c" => "%60", - "%2C" => "%60" ) ); + "%2C" => "%60", + # Undo json_decode escape char decoding + "\n" => "\\n", + "\r" => "\\r", + "\b" => "\\b", + "\f" => "\\f", + "\t" => "\\t", + ) ); $item = trim( $item ); } }