Skip to content

Commit

Permalink
Fix potential security problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZE3kr authored Jan 3, 2019
1 parent e8ce5a8 commit a275690
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}

if (explode(':', $_SERVER['HTTP_HOST'])[0] == "localhost") {
$is_debug = false;

if ( isset($is_debug) && $is_debug ) {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Expand Down

0 comments on commit a275690

Please sign in to comment.