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

Update siege blacklist to 3.0 #68

Merged
merged 1 commit into from
Feb 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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