Repository navigation
Commit 15867ed
committed
Exempt the two config files by name, not the whole savannah domain
The comment claimed a config.guess/config.sub exemption but the pattern was a
domain wildcard, so any other unverified download from that host would have been
skipped — with the checksummed Ruby URL keeping the count nonzero, silently.
Intent and implementation disagreed, and the implementation was the permissive
one.
Narrowing it first required fixing an extraction bug underneath. Excluding shell
metacharacters from the URL pattern also truncated URLs that legitimately
contain them: both savannah links were being cut at the first semicolon, down to
`?p=config.git`, discarding the `f=config.guess` / `f=config.sub` that says
which file is fetched. Nothing to match on. Metacharacters are now allowed
inside the match and trimmed from the end instead, which is where they actually
signal shell syntax rather than URL content.
Verified: real definitions still pass, a different artifact from the same host
is now caught, so is the same gitweb config.git path requesting another file,
and unquoted URLs trailed by `;` or `&&` are trimmed and still checked.1 parent da3df67 commit 15867ed
1 file changed
Lines changed: 34 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
35 | 54 | | |
36 | 55 | | |
37 | 56 | | |
| |||
111 | 130 | | |
112 | 131 | | |
113 | 132 | | |
| 133 | + | |
114 | 134 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
120 | 145 | | |
121 | 146 | | |
122 | 147 | | |
| |||
0 commit comments