Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/291705

Change subject: Replace deprecated "edit" tokens with "csrf"
......................................................................

Replace deprecated "edit" tokens with "csrf"

Bug: T136543
Change-Id: I853ba6e9525d5d062108ed6a5df0fe88c5bf37c5
---
M repo/resources/wikibase.ui.entityViewInit.js
M view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js
2 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/05/291705/1

diff --git a/repo/resources/wikibase.ui.entityViewInit.js 
b/repo/resources/wikibase.ui.entityViewInit.js
index d236900..07d1e1b 100644
--- a/repo/resources/wikibase.ui.entityViewInit.js
+++ b/repo/resources/wikibase.ui.entityViewInit.js
@@ -252,7 +252,7 @@
                                        $.cookie( cookieKey, copyRightVersion, 
{ expires: 365 * 3, path: '/' } );
                                } else {
                                        var api = new mw.Api();
-                                       api.postWithToken( 'options', {
+                                       api.postWithToken( 'csrf', {
                                                action: 'options',
                                                optionname: optionsKey,
                                                optionvalue: copyRightVersion
@@ -290,7 +290,7 @@
                                $.cookie( cookieKey, copyRightVersion, { 
expires: 365 * 3, path: '/' } );
                        } else {
                                var api = new mw.Api();
-                               api.postWithToken( 'options', {
+                               api.postWithToken( 'csrf', {
                                        action: 'options',
                                        optionname: optionsKey,
                                        optionvalue: copyRightVersion
diff --git a/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js 
b/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js
index ce568c7..4efc9d5 100644
--- a/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js
+++ b/view/resources/jquery/wikibase/jquery.wikibase.entitytermsview.js
@@ -236,7 +236,7 @@
                                                { expires: 365, path: '/' }
                                        );
                                } else {
-                                       api.postWithToken( 'options', {
+                                       api.postWithToken( 'csrf', {
                                                action: 'options',
                                                optionname: 
'wikibase-entitytermsview-showEntitytermslistview',
                                                optionvalue: params.visible ? 
'1' : '0'

-- 
To view, visit https://gerrit.wikimedia.org/r/291705
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I853ba6e9525d5d062108ed6a5df0fe88c5bf37c5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to