Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33042 Details for
Bug 53563
Ebuild for Wordpress CMS/blog system v1.2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The required diff for symlink fixing
wordpress-1.2.gentoo.diff (text/plain), 4.94 KB, created by
Peter Westwood
on 2004-06-10 12:13:04 UTC
(
hide
)
Description:
The required diff for symlink fixing
Filename:
MIME Type:
Creator:
Peter Westwood
Created:
2004-06-10 12:13:04 UTC
Size:
4.94 KB
patch
obsolete
>diff -u --recursive wordpress/index.php wordpress-patched/index.php >--- wordpress/index.php 2004-04-28 08:26:49.000000000 +0100 >+++ wordpress-patched/index.php 2004-06-10 19:06:28.165148794 +0100 >@@ -52,7 +52,7 @@ > <?php trackback_rdf(); ?> > --> > >-<?php include(ABSPATH . 'wp-comments.php'); ?> >+<?php include('./wp-comments.php'); ?> > </div> > > <?php endforeach; else: ?> >diff -u --recursive wordpress/wp-blog-header.php wordpress-patched/wp-blog-header.php >--- wordpress/wp-blog-header.php 2004-05-21 23:33:47.000000000 +0100 >+++ wordpress-patched/wp-blog-header.php 2004-06-10 19:07:50.312688178 +0100 >@@ -1,11 +1,11 @@ > <?php > >-if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php')) >+if (!file_exists('./wp-config.php')) > die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); > >-require_once(dirname(__FILE__).'/' . '/wp-config.php'); >+require_once('./wp-config.php'); > >-require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php'); >+require_once('./wp-includes/wp-l10n.php'); > > // Process PATH_INFO, if set. > $path_info = array(); >diff -u --recursive wordpress/wp-comments-post.php wordpress-patched/wp-comments-post.php >--- wordpress/wp-comments-post.php 2004-05-08 00:21:26.000000000 +0100 >+++ wordpress-patched/wp-comments-post.php 2004-06-10 19:11:01.107295896 +0100 >@@ -1,5 +1,5 @@ > <?php >-require( dirname(__FILE__) . '/wp-config.php' ); >+require('./wp-config.php' ); > > function add_magic_quotes($array) { > foreach ($array as $k => $v) { >@@ -101,4 +101,4 @@ > header("Location: $location"); > } > >-?> >\ No newline at end of file >+?> >diff -u --recursive wordpress/wp-includes/links-update-xml.php wordpress-patched/wp-includes/links-update-xml.php >--- wordpress/wp-includes/links-update-xml.php 2004-05-05 07:44:59.000000000 +0100 >+++ wordpress-patched/wp-includes/links-update-xml.php 2004-06-10 19:08:40.353682389 +0100 >@@ -3,7 +3,7 @@ > // Copyright (C) 2003 Mike Little -- mike@zed1.com > > // Get the path of our parent directory: >-$parentpath = dirname(dirname(__FILE__)); >+$parentpath = '../'; > > require_once($parentpath.'/wp-config.php'); > >@@ -171,4 +171,4 @@ > //echo('</pre>'); > } // end if updated cache file > >-?> >\ No newline at end of file >+?> >diff -u --recursive wordpress/wp-includes/wp-l10n.php wordpress-patched/wp-includes/wp-l10n.php >--- wordpress/wp-includes/wp-l10n.php 2004-05-21 04:26:12.000000000 +0100 >+++ wordpress-patched/wp-includes/wp-l10n.php 2004-06-10 19:19:28.300477839 +0100 >@@ -1,7 +1,9 @@ > <?php > $parentpath = dirname(dirname(__FILE__)); >- >-require_once($parentpath.'/wp-config.php'); >+ >+// Commented out by peter.westwood@ftwr.co.uk >+// All files that require/include us have already the wp-config.php >+//require_once($parentpath.'/wp-config.php'); > > $curpath = dirname(__FILE__).'/'; > >diff -u --recursive wordpress/wp-login.php wordpress-patched/wp-login.php >--- wordpress/wp-login.php 2004-05-18 02:29:29.000000000 +0100 >+++ wordpress-patched/wp-login.php 2004-06-10 19:08:56.184374938 +0100 >@@ -1,5 +1,5 @@ > <?php >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > > if (!function_exists('add_magic_quotes')) { > function add_magic_quotes($array) { >diff -u --recursive wordpress/wp-mail.php wordpress-patched/wp-mail.php >--- wordpress/wp-mail.php 2004-05-19 06:43:32.000000000 +0100 >+++ wordpress-patched/wp-mail.php 2004-06-10 19:09:38.566615142 +0100 >@@ -1,7 +1,7 @@ > <?php >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > >-require_once(ABSPATH.WPINC.'/class-pop3.php'); >+require_once('wp-includes/class-pop3.php'); > > error_reporting(2037); > >@@ -154,4 +154,4 @@ > > $pop3->quit(); > >-?> >\ No newline at end of file >+?> >diff -u --recursive wordpress/wp-pass.php wordpress-patched/wp-pass.php >--- wordpress/wp-pass.php 2004-04-20 23:56:36.000000000 +0100 >+++ wordpress-patched/wp-pass.php 2004-06-10 19:09:54.752435392 +0100 >@@ -4,8 +4,8 @@ > It doesn't need to connect to the DB, or do anything fancy at all. Yum. > -- Matt > */ >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30); > header('Location: ' . $_SERVER['HTTP_REFERER']); > >-?> >\ No newline at end of file >+?> >diff -u --recursive wordpress/wp-trackback.php wordpress-patched/wp-trackback.php >--- wordpress/wp-trackback.php 2004-04-24 22:52:24.000000000 +0100 >+++ wordpress-patched/wp-trackback.php 2004-06-10 19:10:30.886428793 +0100 >@@ -1,5 +1,5 @@ > <?php >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > > // trackback is done by a POST > $request_array = 'HTTP_POST_VARS'; >@@ -88,4 +88,4 @@ > do_action('trackback_post', $comment_ID); > } > } >-?> >\ No newline at end of file >+?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53563
:
33041
| 33042 |
33043