Ticket #2866: supplementary-phantom-fix.diff

File supplementary-phantom-fix.diff, 2.0 KB (added by RuddO, 7 years ago)

Supplementary fixes for some files

Line 
1Index: wp-pass.php
2===================================================================
3--- wp-pass.php (revisión: 8)
4+++ wp-pass.php (copia de trabajo)
5@@ -1,5 +1,5 @@
6 <?php
7-require( dirname(__FILE__) . '/wp-config.php');
8+require( getcwd() . '/wp-config.php');
9 
10 if ( get_magic_quotes_gpc() )
11        $_POST['post_password'] = stripslashes($_POST['post_password']);
12@@ -8,4 +8,4 @@
13 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
14 
15 wp_redirect($_SERVER['HTTP_REFERER']);
16-?>
17\ Sin fin-de-línea al final del archivo
18+?>
19Index: wp-comments-post.php
20===================================================================
21--- wp-comments-post.php        (revisión: 8)
22+++ wp-comments-post.php        (copia de trabajo)
23@@ -1,5 +1,5 @@
24 <?php
25-require( dirname(__FILE__) . '/wp-config.php' );
26+require( getcwd() . '/wp-config.php' );
27 
28 nocache_headers();
29 
30Index: wp-login.php
31===================================================================
32--- wp-login.php        (revisión: 8)
33+++ wp-login.php        (copia de trabajo)
34@@ -1,5 +1,5 @@
35 <?php
36-require( dirname(__FILE__) . '/wp-config.php' );
37+require( getcwd() . '/wp-config.php' );
38 
39 $action = $_REQUEST['action'];
40 $error = '';
41Index: wp-mail.php
42===================================================================
43--- wp-mail.php (revisión: 8)
44+++ wp-mail.php (copia de trabajo)
45@@ -1,5 +1,5 @@
46 <?php
47-require(dirname(__FILE__) . '/wp-config.php');
48+require( getcwd() . '/wp-config.php');
49 
50 require_once(ABSPATH.WPINC.'/class-pop3.php');
51 
52@@ -163,4 +163,4 @@
53 
54 $pop3->quit();
55 
56-?>
57\ Sin fin-de-línea al final del archivo
58+?>
59Index: wp-admin/update-links.php
60===================================================================
61--- wp-admin/update-links.php   (revisión: 8)
62+++ wp-admin/update-links.php   (copia de trabajo)
63@@ -1,5 +1,5 @@
64 <?php
65-require_once( dirname( dirname(__FILE__) ) . '/wp-config.php');
66+require_once( getcwd() . '/wp-config.php');
67 require_once( ABSPATH . 'wp-includes/class-snoopy.php');
68 
69 if ( !get_option('use_linksupdate') )