Commit b17abb2
committed
qa: updates psr-7 integration test version
Updates to 1.2.0, which adds the tests we wrote for mitigating ZF2015-05, with a few changes:
- When creating the string representation of the URL, we DO NOT normalize the path to remove multiple leading slashes.
In its absolute form, this is not necessary.
- All normalization is done via `getPath()`; this mitigates the common XSS scenario.
- It adds a test to validate that when using origin-form during a `RequestInterface::getRequestTarget()` call, it will use the results of `getPath()`, as this is a scenario where the XSS could also occur.
I have removed one test from `UriTest`, as it contradicts the first point above.
Since the scenario is covered in the PSR-7 integration tests, we are covered.
See php-http/psr7-integration-tests#54 for more details.
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>1 parent cf1dc9e commit b17abb2
4 files changed
+116
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
189 | 200 | | |
190 | 201 | | |
191 | 202 | | |
| |||
557 | 568 | | |
558 | 569 | | |
559 | 570 | | |
560 | | - | |
| 571 | + | |
561 | 572 | | |
562 | 573 | | |
563 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | 578 | | |
586 | 579 | | |
587 | 580 | | |
| |||
0 commit comments