ZF-Commons / ZfcUser

A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2. (Formerly EdpUser)
BSD 3-Clause "New" or "Revised" License
495 stars 343 forks source link

Redirect Parameter : dynamic url is not allowed by routeExists Method in RedirectCallBack class #648

Open roshanbudhathoki opened 8 years ago

roshanbudhathoki commented 8 years ago

RedirectCallBack class validates the redirect parameter url before actually redirecting to it. But current routeExists method in RedirectCallBack class does can not allow dynamic url to pass its exists test.

private function routeExists($route)
    {
        try {
            $this->router->assemble(array(), array('name' => $route));
        } catch (Exception\RuntimeException $e) {
            return false;
        }
        return true;
    }