return;
}
+ # CSRF protection
+
+ $token = $this->trimmed('token');
+
+ if (!$token || $token != common_session_token()) {
+ $this->client_error(_('There was a problem with your session token. Try again, please.'));
+ return;
+ }
+
$other_nickname = $this->arg('subscribeto');
$result=subs_subscribe_user($user, $other_nickname);
+
if($result != true) {
common_user_error($result);
return;
common_redirect(common_local_url('subscriptions', array('nickname' =>
$user->nickname)));
}
-
}
\ No newline at end of file