Skip to content

Commit f01cda6

Browse files
committed
minor symfony#17838 Remove duplicate validation in RedirectResponse (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- Remove duplicate validation in RedirectResponse | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- d27c4f4 Remove duplicate validation in RedirectResponse
2 parents d3114d1 + d27c4f4 commit f01cda6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/HttpFoundation/RedirectResponse.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ class RedirectResponse extends Response
3333
*/
3434
public function __construct($url, $status = 302, $headers = array())
3535
{
36-
if (empty($url)) {
37-
throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
38-
}
39-
4036
parent::__construct('', $status, $headers);
4137

4238
$this->setTargetUrl($url);

0 commit comments

Comments
 (0)