From 65a2c509087fb2ca61b5de373992a33d94df7ab7 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Sun, 27 Dec 2015 15:49:38 -0600 Subject: [PATCH] Properly encode NanoUI JSON... This is right, not the last fix. The '+' in BYOND scientific notation was becoming a space. --- code/modules/nano/nanoui.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm index c713e14bb45..652bd9ad146 100644 --- a/code/modules/nano/nanoui.dm +++ b/code/modules/nano/nanoui.dm @@ -314,7 +314,7 @@ var/list/send_data = get_send_data(data) // Get the data to send. // Send the new data to the recieveUpdate() Javascript function. - user << output(JSON.stringify(send_data), "[window_id].browser:receiveUpdate") + user << output(url_encode(JSON.stringify(send_data)), "[window_id].browser:receiveUpdate") /**