From 978dadf8064dfa576bef37463094a6b095658381 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Sun, 8 Mar 2015 21:54:17 -0700
Subject: [PATCH] Base64 decode AJAX-fetched text properly

---
 Marlin/configurator/js/configurator.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/configurator/js/configurator.js b/Marlin/configurator/js/configurator.js
index ff41fa39c0..b9c6636d28 100644
--- a/Marlin/configurator/js/configurator.js
+++ b/Marlin/configurator/js/configurator.js
@@ -240,7 +240,7 @@ window.configuratorApp = (function(){
                   timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000),
                 };
               }
-              loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? atob(txt.data.content.replace(/\s/g, '')) : txt, true); };
+              loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? decodeURIComponent(escape(atob(txt.data.content))) : txt, true); };
               success_count++;
             }
           },
-- 
GitLab