Make WordPress Core

Ticket #48049: 48049.1.patch

File 48049.1.patch, 534 bytes (added by dkarfa, 5 years ago)
  • wp-load.php

     
    1616 * @package WordPress
    1717 */
    1818
     19/**
     20 * Exit try to access wp-config path.
     21 */
     22if ( ! empty( $_SERVER['REQUEST_URI'] ) && strpos( sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 'wp-config' ) !== false ) {
     23        die;
     24}
     25
    1926/** Define ABSPATH as this file's directory */
    2027if ( ! defined( 'ABSPATH' ) ) {
    2128        define( 'ABSPATH', dirname( __FILE__ ) . '/' );