r105534 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105533‎ | r105534 | r105535 >
Date:10:34, 8 December 2011
Author:tstarling
Status:ok
Tags:
Comment:
Fixed register_globals vulnerabilities found during automated testing.
Modified paths:
  • /trunk/extensions/CreateAPage/templates/bigarea.tmpl.php (modified) (history)
  • /trunk/extensions/CreateAPage/templates/categorypage.tmpl.php (modified) (history)
  • /trunk/extensions/CreateAPage/templates/editimage-section.tmpl.php (modified) (history)
  • /trunk/extensions/CreateAPage/templates/editimage.tmpl.php (modified) (history)
  • /trunk/extensions/CreateAPage/templates/editpage.tmpl.php (modified) (history)
  • /trunk/extensions/CreateAPage/templates/infobox.tmpl.php (modified) (history)
  • /trunk/extensions/CreateAPage/templates/templates-list.tmpl.php (modified) (history)
  • /trunk/extensions/DonationInterface/globalcollect_gateway/scripts/orphans.php (modified) (history)
  • /trunk/extensions/ExtTab/languages/ET_LanguageEn.php (modified) (history)
  • /trunk/extensions/ResumableUpload/tests/phpunit/ResumableUploadTest.php (modified) (history)
  • /trunk/extensions/SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php (modified) (history)
  • /trunk/extensions/WikiObjectModel/includes/apis/WOM_OutputObjectModel.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/scripts/orphans.php
@@ -1,4 +1,7 @@
22 <?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
36 //If you want to use this script, you will have to add the following line to LocalSettings.php:
47 //$wgAutoloadClasses['GlobalCollectOrphanAdapter'] = $IP . '/extensions/DonationInterface/globalcollect_gateway/scripts/orphan_adapter.php';
58
Index: trunk/extensions/WikiObjectModel/includes/apis/WOM_OutputObjectModel.php
@@ -1,4 +1,7 @@
22 <?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
36
47 global $wgOMIP;
58 require_once( $wgOMIP . '/includes/apis/WOM_OutputProcessor.php' );
Index: trunk/extensions/ExtTab/languages/ET_LanguageEn.php
@@ -1,4 +1,7 @@
22 <?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
36
47 global $smwgExtTabIP;
58 include_once( $smwgExtTabIP . '/languages/ET_Language.php' );
Index: trunk/extensions/ResumableUpload/tests/phpunit/ResumableUploadTest.php
@@ -1,5 +1,9 @@
22 <?php
33
 4+if ( !defined( 'MEDIAWIKI' ) ) {
 5+ exit( 1 );
 6+}
 7+
48 global $IP;
59 require_once( "$IP/maintenance/tests/ApiSetup.php" );
610 require_once( "$IP/maintenance/deleteArchivedFiles.inc" );
Index: trunk/extensions/SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php
@@ -16,6 +16,9 @@
1717 *
1818 * @ingroup SpecialPage
1919 */
 20+if ( !defined( 'MEDIAWIKI' ) ) {
 21+ exit( 1 );
 22+}
2023
2124 global $swbgIP;
2225
Index: trunk/extensions/CreateAPage/templates/editpage.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <!-- CSS part -->
49 <style type="text/css">
@@ -117,4 +122,4 @@
118123
119124
120125 </div>
121 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 126+<!-- e:<?php echo __FILE__ ?> -->
Index: trunk/extensions/CreateAPage/templates/infobox.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <fieldset id="cp-infobox-fieldset">
49 <legend><?php echo wfMsg( 'createpage-infobox-legend' ) ?> <span style="font-size: small; font-weight: normal; margin-left: 5px">[<a id="cp-infobox-toggle" title="toggle" href="#"><?php echo wfMsg( 'createpage-hide' ) ?></a>]</span></legend>
@@ -53,4 +58,4 @@
5459 ?>
5560 </div>
5661 </fieldset>
57 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 62+<!-- e:<?php echo __FILE__ ?> -->
Index: trunk/extensions/CreateAPage/templates/templates-list.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <noscript>
49 <style type="text/css">
@@ -138,4 +143,4 @@
139144 <div id="cp-title-check">&nbsp;</div>
140145 </div>
141146 <br />
142 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 147+<!-- e:<?php echo __FILE__ ?> -->
Index: trunk/extensions/CreateAPage/templates/editimage.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <!-- JavaScript part -->
49 <script type="text/javascript">
@@ -32,4 +37,4 @@
3338 <input type="submit" id="createpage_upload_submit<?php echo $image_num ?>" name="wpImageUpload" value="<?php echo wfMsg( 'createpage-upload' ) ?>" class="upload_submit" />
3439 </noscript>
3540 </div>
36 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 41+<!-- e:<?php echo __FILE__ ?> -->
Index: trunk/extensions/CreateAPage/templates/bigarea.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <div style="display:block;" id="wpTableMultiEdit" name="wpTableMultiEdit">
49 <?php
@@ -18,4 +23,4 @@
1924 ?>
2025 <div class="display:<?php echo $display ?>"><?php echo $value ?></div>
2126 </div>
22 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 27+<!-- e:<?php echo __FILE__ ?> -->
Index: trunk/extensions/CreateAPage/templates/categorypage.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <!-- CSS part -->
49 <style type="text/css">
@@ -65,4 +70,4 @@
6671 <?php } // if ( $cloud->tags ) ?>
6772 <textarea tabindex="<?php echo $num ?>" accesskey="," name="wpCategoryTextarea" id="wpCategoryTextarea" rows="3" cols="<?php echo $cols ?>"<?php echo $ew ?>><?php echo $text_category ?></textarea>
6873 </noscript>
69 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 74+<!-- e:<?php echo __FILE__ ?> -->
Index: trunk/extensions/CreateAPage/templates/editimage-section.tmpl.php
@@ -1,3 +1,8 @@
 2+<?php
 3+if ( !defined( 'MEDIAWIKI' ) ) {
 4+ exit( 1 );
 5+}
 6+?>
27 <!-- s:<?php echo __FILE__ ?> -->
38 <!-- JavaScript part -->
49 <script type="text/javascript">
@@ -29,4 +34,4 @@
3035 <input type="submit" id="createpage_upload_submit_section<?php echo $imagenum ?>" name="wpImageUpload" value="<?php echo wfMsg( 'createpage-upload' ) ?>" class="upload_submit" />
3136 </noscript>
3237 </div>
33 -<!-- e:<?php echo __FILE__ ?> -->
\ No newline at end of file
 38+<!-- e:<?php echo __FILE__ ?> -->

Follow-up revisions

RevisionCommit summaryAuthorDate
r105620MFT r104539, r105534, r105584, r105593, r105594, r105600, r105611awjrichards23:56, 8 December 2011

Status & tagging log