dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
eaa5437
)
Merge "Don't "preview" (i.e. execute) user JS on non-preview requests"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 20 Nov 2015 23:59:02 +0000
(23:59 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 20 Nov 2015 23:59:02 +0000
(23:59 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
81724c5
..
c35204d
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-3309,7
+3309,11
@@
class OutputPage extends ContextSource {
*/
public function userCanPreview() {
$request = $this->getRequest();
- if ( $request->getVal( 'action' ) !== 'submit' || !$request->wasPosted() ) {
+ if (
+ $request->getVal( 'action' ) !== 'submit' ||
+ !$request->getCheck( 'wpPreview' ) ||
+ !$request->wasPosted()
+ ) {
return false;
}