protected function getValidReturnUri( $returnUri, $default = null )
    {
        $match      = array();
        $returnUri  = ltrim( str_replace( '\\', '/', $returnUri ), "\n\r\t\v\e\f" );

        if ( ! preg_match( '#^/([^/].*)?$#', $returnUri, $match ) )
        {
            return $default;
        }

        return $returnUri;
    }
protected function getValidReturnUri( $returnUri, $default = null )
    {
        $match      = array();
        $returnUri  = ltrim( str_replace( '\\', '/', $returnUri ), "\n\r\t\v\e\f" );

        if ( ! preg_match( '#^/([^/].*)?$#', $returnUri, $match ) )
        {
            return $default;
        }

        return $returnUri;
    }
protected function getValidReturnUri ( $ returnUri , $ default = null ) { $ match = array ( ) ; $ returnUri = ltrim ( str_replace ( '\\' , '/' , $ returnUri ) , "\n\r\t\v\e\f" ) ; if ( ! preg_match ( '#^/([^/].*)?$#' , $ returnUri , $ match ) ) { return $ default ; } return $ returnUri ; }
Gte valid return-uri

@param   string      $returnUri
@param   string|null $default
@return  string|null
Gte valid return - uri