From 89b10666bb25fc2dc016c246b55e219d6e8138e1 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 1 Sep 2013 21:45:10 +0200 Subject: [PATCH] IMPORTANT: parent::handlePost() in NewnoticeAction otherwise we don't do csrf checking etc... --- actions/newnotice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/newnotice.php b/actions/newnotice.php index 7839074cd1..ad06c7e266 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -101,6 +101,8 @@ class NewnoticeAction extends FormAction */ protected function handlePost() { + parent::handlePost(); + assert($this->scoped); // XXX: maybe an error instead... $user = $this->scoped->getUser(); $content = $this->trimmed('status_textarea'); -- 2.39.5