Fix handling of -- (bug #1453430).

This commit is contained in:
Michal Čihař
2006-03-23 16:58:58 +00:00
parent 84ca513a51
commit 8ece101046
2 changed files with 4 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ if (isset($plugin_list)) {
$p4 = 2147483647;
}
$p5 = strpos($buffer, '--', $i);
if ($p5 === FALSE) {
if ($p5 === FALSE || $p5 >= ($len - 2) || $buffer[$p5 + 2] > ' ') {
$p5 = 2147483647;
}
$p6 = strpos($buffer, '/*', $i);