remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE--

This commit is contained in:
Greg Beaver 2008-01-05 21:39:39 +00:00
parent 0e5371eea7
commit b61e2d4703

View File

@ -1667,7 +1667,7 @@ COMMAND $cmd
$wanted = $wanted_headers . "\n--HEADERS--\n" . $wanted;
$output = $output_headers . "\n--HEADERS--\n" . $output;
if (isset($wanted_re)) {
$wanted_re = $wanted_headers . "\n--HEADERS--\n" . $wanted_re;
$wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
}
}