From: Mikael Nordfeldth Date: Sun, 1 Sep 2013 19:45:10 +0000 (+0200) Subject: IMPORTANT: parent::handlePost() in NewnoticeAction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89b10666bb25fc2dc016c246b55e219d6e8138e1;p=quix0rs-gnu-social.git IMPORTANT: parent::handlePost() in NewnoticeAction otherwise we don't do csrf checking etc... --- 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');