Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS

SVN: [40117] trunk/extensions/SimpleSecurity/SimpleSecurity.php

 

 

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded


nad at svn

Aug 27, 2008, 5:54 PM

Post #1 of 1 (19 views)
Permalink
SVN: [40117] trunk/extensions/SimpleSecurity/SimpleSecurity.php

Revision: 40117
Author: nad
Date: 2008-08-28 00:54:57 +0000 (Thu, 28 Aug 2008)

Log Message:
-----------
warnings were being generated when php using E_ALL

Modified Paths:
--------------
trunk/extensions/SimpleSecurity/SimpleSecurity.php

Modified: trunk/extensions/SimpleSecurity/SimpleSecurity.php
===================================================================
--- trunk/extensions/SimpleSecurity/SimpleSecurity.php 2008-08-28 00:04:57 UTC (rev 40116)
+++ trunk/extensions/SimpleSecurity/SimpleSecurity.php 2008-08-28 00:54:57 UTC (rev 40117)
@@ -18,7 +18,7 @@

if (!defined('MEDIAWIKI')) die('Not an entry point.');

-define('SIMPLESECURITY_VERSION', '4.2.5, 2008-08-27');
+define('SIMPLESECURITY_VERSION', '4.2.6, 2008-08-28');

# Global security settings
$wgSecurityMagicIf = "ifusercan"; # the name for doing a permission-based conditional
@@ -200,14 +200,15 @@

# Hack to prevent specialpage operations on unreadable pages
if (!is_object($wgTitle)) return true;
- $ns = $wgTitle->getNamespace();
+ $title = $wgTitle;
+ $ns = $title->getNamespace();
if ($ns == NS_SPECIAL) {
- list($name, $par) = explode('/', $wgTitle->getDBkey(), 2);
+ list($name, $par) = explode('/', $title->getDBkey().'/', 2);
if ($par) $title = Title::newFromText($par);
elseif ($wgRequest->getVal('target')) $title = Title::newFromText($wgRequest->getVal('target'));
elseif ($wgRequest->getVal('oldtitle')) $title = Title::newFromText($wgRequest->getVal('oldtitle'));
- } else $title = $wgTitle;
- if (!is_object($title)) return true; # If still no usable title bail
+ }
+ if (!is_object($title)) return true; # If still no usable title bail

$this->info['LS'] = array(); # security info for rules from LocalSettings ($wgPageRestrictions)
$this->info['PR'] = array(); # security info for rules from protect tab



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.