Remove duplicate validation in RedirectResponse
This commit is contained in:
parent
d3114d1778
commit
d27c4f4d68
@ -33,10 +33,6 @@ class RedirectResponse extends Response
|
||||
*/
|
||||
public function __construct($url, $status = 302, $headers = array())
|
||||
{
|
||||
if (empty($url)) {
|
||||
throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
|
||||
}
|
||||
|
||||
parent::__construct('', $status, $headers);
|
||||
|
||||
$this->setTargetUrl($url);
|
||||
|
Reference in New Issue
Block a user