if (!defined('LACONICA')) { exit(1); }
class SubscribeAction extends Action {
+
function handle($args) {
parent::handle($args);
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');
$other = User::staticGet('nickname', $other_nickname);