From a98b9ca1a7a6cc07e23474e03520db2698783951 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 26 Jan 2015 14:16:46 -0500 Subject: [PATCH] Fix URI encoding on the csrf token --- static/js/controllers/superuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/controllers/superuser.js b/static/js/controllers/superuser.js index ee5159798..ddaee7d5c 100644 --- a/static/js/controllers/superuser.js +++ b/static/js/controllers/superuser.js @@ -16,7 +16,7 @@ function SuperUserAdminCtrl($scope, $timeout, ApiService, Features, UserService, $scope.debugLogs = null; $scope.pollChannel = null; $scope.logsScrolled = false; - $scope.csrf_token = window.__token; + $scope.csrf_token = encodeURIComponent(window.__token); $scope.configurationSaved = function() { $scope.requiresRestart = true;