Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Update siege blacklist to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Jan 11, 2016
1 parent 53cb6cb commit 2927195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/Siege.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public function __construct(
escapeshellarg($options->siege).' --version 2>&1 | head -n 1',
),
);
$bad_prefix = 'SIEGE 3';
$bad_prefix = 'SIEGE 3.0';
if (substr($version_line, 0, strlen($bad_prefix)) === $bad_prefix) {
fprintf(
STDERR,
"WARNING: Siege 3.0.0-3.0.7 sends an incorrect HOST header to ports ".
"other than :80 and :443. Siege 3.0.8 and 3.0.9 sometimes sends full ".
"URLs as paths. You are using '%s'.\n\n".
"You can specify a path to siege 2.7x with the ".
"You can specify a path to siege 2.7x or > 3.1 with the ".
"--siege=/path/to/siege option. If you have patched siege to fix ".
"these issues, pass --skip-version-checks.\n",
$version_line,
Expand Down

0 comments on commit 2927195

Please sign in to comment.