diff --git a/wp-config.php b/wp-config.php index aef2682..eb3da56 100644 --- a/wp-config.php +++ b/wp-config.php @@ -71,6 +71,9 @@ $hostname = "localhost"; } +// Filter +$hostname = filter_var($hostname, FILTER_SANITIZE_STRING); + // Try server hostname if (!defined('WP_ENV')) { // Set environment based on hostname