From df41b1307f9a2690115e246e584d6a398d4f9730 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 4 Feb 2009 11:55:22 -0800 Subject: [PATCH] Removed erroneous comments referring to old common_notice_form() func --- actions/login.php | 1 - actions/newnotice.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/actions/login.php b/actions/login.php index 11cf1f02a6..6c6567b7ba 100644 --- a/actions/login.php +++ b/actions/login.php @@ -96,7 +96,6 @@ class LoginAction extends Action { // XXX: login throttle - // CSRF protection - token set in common_notice_form() $token = $this->trimmed('token'); if (!$token || $token != common_session_token()) { $this->clientError(_('There was a problem with your session token. '. diff --git a/actions/newnotice.php b/actions/newnotice.php index 61f0f83650..5e7691f33d 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -90,7 +90,7 @@ class NewnoticeAction extends Action $this->clientError(_('Not logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { - // CSRF protection - token set in common_notice_form() + // CSRF protection $token = $this->trimmed('token'); if (!$token || $token != common_session_token()) { $this->clientError(_('There was a problem with your session token. '. -- 2.39.5