- $form->appendElement('p', sprintf(_('Do you authorize %s to access %s?'), $request->query['client_id'], $request->query['scope']));
+ $domain_name = parse_url($request->query['redirect_uri'], PHP_URL_HOST);
+ if (!strlen($domain_name)) { $domain_name = $request->query['client_id']; }
+ $form->appendElement('p', sprintf(_('Do you authorize %s to access %s?'), $domain_name, $request->query['scope']));