git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 9b741c4f authored by Evan Prodromou's avatar Evan Prodromou

better client error on CSRF problem with subscribe/unsubscribe

darcs-hash:20080829051628-84dde-2a339a35c422afb9ec04f757771764ed43b2c28b.gz
parent 4272da4e
......@@ -41,7 +41,7 @@ class SubscribeAction extends Action {
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
common_redirect(common_local_url('subscriptions', array('nickname' => $user->nickname)));
$this->client_error(_('There was a problem with your session token. Try again, please.'));
return;
}
......
......@@ -38,7 +38,7 @@ class UnsubscribeAction extends Action {
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
common_redirect(common_local_url('subscriptions', array('nickname' => $user->nickname)));
$this->client_error(_('There was a problem with your session token. Try again, please.'));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment