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:
dc1632d
)
Merge "Add ?safemode=1 to disable user JS/CSS"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Mon, 10 Apr 2017 18:50:19 +0000
(18:50 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 10 Apr 2017 18:50:19 +0000
(18:50 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
5380264
..
a25ea9c
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-2370,6
+2370,11
@@
class OutputPage extends ContextSource {
if ( $this->mArticleBodyOnly ) {
echo $this->mBodytext;
} else {
+ // Enable safe mode if requested
+ if ( $this->getRequest()->getBool( 'safemode' ) ) {
+ $this->disallowUserJs();
+ }
+
$sk = $this->getSkin();
// add skin specific modules
$modules = $sk->getDefaultModules();