Skip to content

Commit

Permalink
Added support for XSRF token
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Apr 14, 2015
1 parent b30ae74 commit af7d16e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/language_switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
</author>
</authors>
<releases>
<release version="1.2.4" date="2015-04-14" min="2.3.0" max="2.5.x">
* Added support for XSRF token
</release>
<release version="1.2.3" date="2014-11-04" min="2.3.0" max="2.5.x">
* Fix visual glitch when no language is found
</release>
Expand Down

0 comments on commit af7d16e

Please sign in to comment.