Ticket #48049: 48049.1.patch
File 48049.1.patch, 534 bytes (added by , 5 years ago) |
---|
-
wp-load.php
16 16 * @package WordPress 17 17 */ 18 18 19 /** 20 * Exit try to access wp-config path. 21 */ 22 if ( ! empty( $_SERVER['REQUEST_URI'] ) && strpos( sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 'wp-config' ) !== false ) { 23 die; 24 } 25 19 26 /** Define ABSPATH as this file's directory */ 20 27 if ( ! defined( 'ABSPATH' ) ) { 21 28 define( 'ABSPATH', dirname( __FILE__ ) . '/' );