diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-02 06:44:54 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-02 06:44:54 +0000 |
commit | 798984381f9ee40681d1feb4a7bef72460fe39f2 (patch) | |
tree | 8bcf6b27a9efe7f53a2b1e5fd23d7f4f2789bc51 /actions/nudge.php | |
parent | 928d3bd68c62d2e35594fb4196216e1f9fd363a2 (diff) | |
parent | 36f73bffbc717d895370e905070c310062127529 (diff) |
Merge branch '0.7.x' into 0.8.x
Diffstat (limited to 'actions/nudge.php')
-rw-r--r-- | actions/nudge.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actions/nudge.php b/actions/nudge.php index bc3d48478..b4e5e01dd 100644 --- a/actions/nudge.php +++ b/actions/nudge.php @@ -50,7 +50,7 @@ class NudgeAction extends Action { /** * Class handler. - * + * * @param array $args array of arguments * * @return nothing @@ -75,7 +75,7 @@ class NudgeAction extends Action // CSRF protection $token = $this->trimmed('token'); - + if (!$token || $token != common_session_token()) { $this->clientError(_('There was a problem with your session token. Try again, please.')); return; @@ -100,7 +100,8 @@ class NudgeAction extends Action } else { // display a confirmation to the user common_redirect(common_local_url('showstream', - array('nickname' => $other->nickname))); + array('nickname' => $other->nickname)), + 303); } } |