Browse Source

Base64 decode AJAX-fetched text properly

Scott Lahteine 9 years ago
parent
commit
978dadf806
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/configurator/js/configurator.js

+ 1
- 1
Marlin/configurator/js/configurator.js View File

240
                   timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000),
240
                   timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000),
241
                 };
241
                 };
242
               }
242
               }
243
-              loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? atob(txt.data.content.replace(/\s/g, '')) : txt, true); };
243
+              loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? decodeURIComponent(escape(atob(txt.data.content))) : txt, true); };
244
               success_count++;
244
               success_count++;
245
             }
245
             }
246
           },
246
           },

Loading…
Cancel
Save