Merge "SECURITY: Don't allow entities in XMP with HHVM"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 1 Apr 2015 17:40:17 +0000 (17:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 1 Apr 2015 17:40:17 +0000 (17:40 +0000)
includes/OutputPage.php

index 73d0cba..cac89f4 100644 (file)
@@ -3106,7 +3106,7 @@ class OutputPage extends ContextSource {
                // This also enforces $.isReady to be true at </body> which fixes the
                // mw.loader bug in Firefox with using document.write between </body>
                // and the DOMContentReady event (bug 47457).
-               $html = Html::inlineScript( 'window.jQuery && jQuery.ready();' );
+               $html = Html::inlineScript( 'if(window.jQuery)jQuery.ready();' );
 
                if ( !$this->getConfig()->get( 'ResourceLoaderExperimentalAsyncLoading' ) ) {
                        $html .= $this->getScriptsForBottomQueue( false );