Bug #2135
$HTTP["host"] == "hostname:port" works wrong
| Status: | Fixed | Start date: | 2009-12-31 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% | |
| Category: | core | |||
| Target version: | 1.4.32 | |||
| Missing in 1.5.x: | No |
Description
There is a bug in configure-glue.c, line 289~303
289 if (ck_colon == val_colon) {
290 /* nothing to do with it */
291 break;
292 }
When and only when ck_colon == val_colon == NULL, it breaks. Otherwise, it will go ahead.
Therefore, anything within $HTTP["host"] == "...:port" { } has no chance to be reach.
$HTTP["host"] == "localhost:8880" {
## it would never reach here!
}
Related issues
Associated revisions
fix :port handling in $HTTP["host"] checks (fixes #2135. thx liming)
fix :port handling in $HTTP["host"] checks (fixes #2135. thx liming)
Also available in: Atom
