Skip to content

Commit

Permalink
Adding URL security filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrjones committed Mar 15, 2016
1 parent 0e2346f commit 2717147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 2717147

@simonrjones
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use this on production code, we're testing a security patch to this project.

Please sign in to comment.