Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commit0f2d577
committed
bug#29256 [HttpFoundation] Fixed absolute Request URI with default port (thomasbisignani)
This PR was merged into the 3.4 branch.Discussion----------[HttpFoundation] Fixed absolute Request URI with default port| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#29234| License | MIT| Doc PR |This PR fixes the#29234 issue, the request URI with default port was not properly generated.Example :```php$request = Request::create('http://test.com:80/foo');$request->server->set('REQUEST_URI', 'http://test.com:80/foo');```Before this fix, the `$request->getUri()` method returned `http://test.com/:80/foo` :```diffFailed asserting that two strings are equal.--- Expected+++ Actual@@ @@-'http://test.com/foo'+'http://test.com/:80/foo'```Commits-------cddce2a [HttpFoundation] Fixed absolute Request URI with default portFile tree
2 files changed
+58
-3
lines changed- src/Symfony/Component/HttpFoundation
- Tests
2 files changed
+58
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
| 1839 | + | |
1839 | 1840 | | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1843 | 1849 | | |
1844 | 1850 | | |
1845 | 1851 | | |
| |||
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
235 | 284 | | |
236 | 285 | | |
237 | 286 | | |
| |||
0 commit comments
Comments
(0)