Page MenuHomePhabricator

mediawiki-1.4.6_openbasedir.patch

Authored By
bzimport
Nov 21 2014, 8:20 PM
Size
3 KB
Referenced Files
None
Subscribers
None

mediawiki-1.4.6_openbasedir.patch

diff -Naur ../src/mediawiki-1.4.6/includes/GlobalFunctions.php ./includes/GlobalFunctions.php
--- ../src/mediawiki-1.4.6/includes/GlobalFunctions.php 2005-06-01 08:01:06.000000000 +0200
+++ ./includes/GlobalFunctions.php 2005-07-14 11:10:41.190900896 +0200
@@ -29,7 +29,7 @@
require_once( 'DatabaseFunctions.php' );
require_once( 'UpdateClasses.php' );
require_once( 'LogPage.php' );
-require_once( 'normal/UtfNormalUtil.php' );
+require_once( $IP.'/includes/normal/UtfNormalUtil.php' );
/**
* Compatibility functions
diff -Naur ../src/mediawiki-1.4.6/includes/SpecialPreferences.php ./includes/SpecialPreferences.php
--- ../src/mediawiki-1.4.6/includes/SpecialPreferences.php 2005-05-29 08:18:54.000000000 +0200
+++ ./includes/SpecialPreferences.php 2005-07-14 15:03:13.175323620 +0200
@@ -9,7 +9,8 @@
die();
/* to get a list of languages in setting user's language preference */
-require_once('languages/Names.php');
+global $IP;
+require_once($IP.'/languages/Names.php');
/**
* Entry point that create the "Preferences" object
diff -Naur ../src/mediawiki-1.4.6/includes/SpecialUserlogin.php ./includes/SpecialUserlogin.php
--- ../src/mediawiki-1.4.6/includes/SpecialUserlogin.php 2005-06-19 04:05:20.000000000 +0200
+++ ./includes/SpecialUserlogin.php 2005-07-14 11:50:20.982564960 +0200
@@ -399,6 +399,7 @@
function mainLoginForm( $err ) {
global $wgUser, $wgOut, $wgLang;
global $wgDBname, $wgAllowRealName, $wgEnableEmail;
+ global $IP;
if ( '' == $this->mName ) {
if ( 0 != $wgUser->getID() ) {
@@ -415,7 +416,7 @@
$titleObj = Title::makeTitle( NS_SPECIAL, 'Userlogin' );
- require_once( 'templates/Userlogin.php' );
+ require_once( $IP.'/includes/templates/Userlogin.php' );
$template =& new UserloginTemplate();
$template->set( 'name', $this->mName );
diff -Naur ../src/mediawiki-1.4.6/includes/Title.php ./includes/Title.php
--- ../src/mediawiki-1.4.6/includes/Title.php 2005-05-06 05:25:43.000000000 +0200
+++ ./includes/Title.php 2005-07-14 11:10:52.743117738 +0200
@@ -6,7 +6,7 @@
*/
/** */
-require_once( 'normal/UtfNormal.php' );
+require_once( $IP.'/includes/normal/UtfNormal.php' );
$wgTitleInterwikiCache = array();
define ( 'GAID_FOR_UPDATE', 1 );
diff -Naur ../src/mediawiki-1.4.6/includes/WebRequest.php ./includes/WebRequest.php
--- ../src/mediawiki-1.4.6/includes/WebRequest.php 2005-04-20 12:41:54.000000000 +0200
+++ ./includes/WebRequest.php 2005-07-14 11:23:06.312886592 +0200
@@ -92,6 +92,7 @@
*/
function normalizeUnicode( $data ) {
global $wgUseLatin1;
+ global $IP;
if( is_array( $data ) ) {
foreach( $data as $key => $val ) {
$data[$key] = $this->normalizeUnicode( $val );
@@ -105,7 +106,7 @@
'',
$data );
} else {
- require_once( 'normal/UtfNormal.php' );
+ require_once( $IP.'/includes/normal/UtfNormal.php' );
return UtfNormal::cleanUp( $data );
}
}
diff -Naur ../src/mediawiki-1.4.6/includes/normal/RandomTest.php ./includes/normal/RandomTest.php
--- ../src/mediawiki-1.4.6/includes/normal/RandomTest.php 2004-11-14 22:40:44.000000000 +0100
+++ ./includes/normal/RandomTest.php 2005-07-14 15:05:27.400605097 +0200
@@ -31,7 +31,8 @@
}
require_once( 'UtfNormal.php' );
-require_once( '../DifferenceEngine.php' );
+global $IP;
+require_once( $IP.'/includes/DifferenceEngine.php' );
dl('php_utfnormal.so' );
@@ -103,4 +104,4 @@
$norm = '';
}
-?>
\ No newline at end of file
+?>
diff -Naur ../src/mediawiki-1.4.6/includes/templates/Userlogin.php ./includes/templates/Userlogin.php
--- ../src/mediawiki-1.4.6/includes/templates/Userlogin.php 2005-03-27 18:11:26.000000000 +0200
+++ ./includes/templates/Userlogin.php 2005-07-14 15:08:47.704686891 +0200
@@ -2,7 +2,8 @@
if( !defined( 'MEDIAWIKI' ) ) die();
-require_once( 'includes/SkinTemplate.php' );
+global $IP;
+require_once( $IP.'/includes/SkinTemplate.php' );
/**
* HTML template for Special:Userlogin form
@@ -106,4 +107,4 @@
}
}
-?>
\ No newline at end of file
+?>

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1482
Default Alt Text
mediawiki-1.4.6_openbasedir.patch (3 KB)

Event Timeline