From c13b0b3103086aba66c78332c0ad9ff0d0c43f7e Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 31 Aug 2010 15:34:27 +0000 Subject: Ticket #777. Use Base64 encoding for file content so javascript/php does not get confused! --- usr/local/www/edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 6b71ad2..9236c3f 100644 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -1,5 +1,4 @@ @@ -131,7 +131,7 @@ outputJavaScriptFileInline("filebrowser/browser.js"); $("fileStatus").innerHTML = " ..."; Effect.Appear("fileStatusBox", { duration: 0.5 }); - var fileContent = escape($("fileContent").value); + var fileContent = Base64.encode($("fileContent").value); fileContent = fileContent.replace(/\+/g,"%2B"); new Ajax.Request( -- cgit v1.1