From af7d16edff91e883f1aee2f05b5abccf9a912191 Mon Sep 17 00:00:00 2001 From: Nicolas Brassard Date: Tue, 14 Apr 2015 10:33:15 -0400 Subject: [PATCH] Added support for XSRF token --- assets/language_switcher.js | 3 ++- extension.meta.xml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/language_switcher.js b/assets/language_switcher.js index 231c1c8..d29bd8f 100755 --- a/assets/language_switcher.js +++ b/assets/language_switcher.js @@ -40,7 +40,8 @@ 'fields[first_name]' : Symphony.Author.first_name, 'fields[last_name]' : Symphony.Author.last_name, 'fields[username]' : Symphony.Author.username, - 'fields[language]' : lang + 'fields[language]' : lang, + 'xsrf': Symphony.Utilities ? Symphony.Utilities.getXSRF() : '' } $.post(url, data, function(data, textStatus){ // Callback function, reload page diff --git a/extension.meta.xml b/extension.meta.xml index c9b0804..487ae82 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -27,6 +27,9 @@ + + * Added support for XSRF token + * Fix visual glitch when no language is found