Commit 843dcf9
[HttpFoundation] Throw when IpUtils::isPrivateIp() receives a non-canonical IP address
1 parent 8212c0d commit 843dcf9Copy full SHA for 843dcf9
2 files changed
+30Lines changed: 30 additions & 0 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/Symfony/Component/HttpFoundation
- Tests
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/Symfony/Component/HttpFoundation/IpUtils.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/IpUtils.php+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
231 | 231 | |
232 | 232 | |
233 | 233 | |
| 234 | + |
| 235 | + |
234 | 236 | |
235 | 237 | |
236 | 238 | |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
237 | 243 | |
238 | 244 | |
239 | 245 | |
|
Collapse file
src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
211 | 211 | |
212 | 212 | |
213 | 213 | |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
214 | 238 | |
215 | 239 | |
216 | 240 | |
|
0 commit comments