Skip to content

Commit

Permalink
Merge pull request #223 from indigoxela/222-preg_match
Browse files Browse the repository at this point in the history
Issue #222: Set server software to empty string to prevent preg_match…
  • Loading branch information
yorkshire-pudding authored Oct 21, 2022
2 parents dede487 + 52868e1 commit 4eb7f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/miscellaneous.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function bee_initialize_server() {
// @codingStandardsIgnoreLine -- Not applicable to use ip_address() instead.
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_SOFTWARE'] = NULL;
$_SERVER['SERVER_SOFTWARE'] = '';
$_SERVER['SERVER_NAME'] = 'localhost';
$_SERVER['REQUEST_URI'] = '/';
$_SERVER['REQUEST_METHOD'] = 'GET';
Expand Down

0 comments on commit 4eb7f2b

Please sign in to comment.