8000 Remove duplicate validation in RedirectResponse · symfony/symfony@d27c4f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d27c4f4

Browse files
committed
Remove duplicate validation in RedirectResponse
1 parent d3114d1 commit d27c4f4

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)
0