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 ); } }