dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e77e7f2
)
ImageHistoryList: Remove 'wpEditToken' parameter from the "revert" link for files
author
Bartosz Dziewoński
<matma.rex@gmail.com>
Thu, 1 Sep 2016 20:59:55 +0000
(22:59 +0200)
committer
Bartosz Dziewoński
<matma.rex@gmail.com>
Thu, 1 Sep 2016 21:50:34 +0000
(23:50 +0200)
The action=revert page does not use this parameter at all. (It displays
a form with an entirely different token.) I think this has not been
needed since
cf6dd13faca23af5b6e3188445b84e05d620d499
(r91284).
Change-Id: Ice5ecd2606a94a70321ede5304fee77fb1fb06c1
includes/page/ImageHistoryList.php
patch
|
blob
|
history
diff --git
a/includes/page/ImageHistoryList.php
b/includes/page/ImageHistoryList.php
index
607357f
..
bb8ed24
100644
(file)
--- a/
includes/page/ImageHistoryList.php
+++ b/
includes/page/ImageHistoryList.php
@@
-180,7
+180,6
@@
class ImageHistoryList extends ContextSource {
[
'action' => 'revert',
'oldimage' => $img,
- 'wpEditToken' => $user->getEditToken( $img )
]
);
}