whitespace fixup in userauthorization
darcs-hash:20081203032650-5ed1f-1f9affd557cf958cdfe7ed224433199b22e1c56a.gz
This commit is contained in:
parent
58beea9798
commit
8b3080faf4
@ -415,12 +415,12 @@ class UserauthorizationAction extends Action {
|
|||||||
if (strlen($listenee) > 255) {
|
if (strlen($listenee) > 255) {
|
||||||
throw new OAuthException("Listenee URI '$listenee' too long");
|
throw new OAuthException("Listenee URI '$listenee' too long");
|
||||||
}
|
}
|
||||||
|
|
||||||
$other = User::staticGet('uri', $listenee);
|
$other = User::staticGet('uri', $listenee);
|
||||||
if ($other) {
|
if ($other) {
|
||||||
throw new OAuthException("Listenee URI '$listenee' is local user");
|
throw new OAuthException("Listenee URI '$listenee' is local user");
|
||||||
}
|
}
|
||||||
|
|
||||||
$remote = Remote_profile::staticGet('uri', $listenee);
|
$remote = Remote_profile::staticGet('uri', $listenee);
|
||||||
if ($remote) {
|
if ($remote) {
|
||||||
$sub = new Subscription();
|
$sub = new Subscription();
|
||||||
@ -440,11 +440,11 @@ class UserauthorizationAction extends Action {
|
|||||||
if (!common_valid_http_url($profile)) {
|
if (!common_valid_http_url($profile)) {
|
||||||
throw new OAuthException("Invalid profile URL '$profile'.");
|
throw new OAuthException("Invalid profile URL '$profile'.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($profile == common_local_url('showstream', array('nickname' => $nickname))) {
|
if ($profile == common_local_url('showstream', array('nickname' => $nickname))) {
|
||||||
throw new OAuthException("Profile URL '$profile' is for a local user.");
|
throw new OAuthException("Profile URL '$profile' is for a local user.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$license = $req->get_parameter('omb_listenee_license');
|
$license = $req->get_parameter('omb_listenee_license');
|
||||||
if (!common_valid_http_url($license)) {
|
if (!common_valid_http_url($license)) {
|
||||||
throw new OAuthException("Invalid license URL '$license'.");
|
throw new OAuthException("Invalid license URL '$license'.");
|
||||||
|
Loading…
Reference in New Issue
Block a user