]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
IMPORTANT: parent::handlePost() in NewnoticeAction
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 1 Sep 2013 19:45:10 +0000 (21:45 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 2 Sep 2013 09:05:21 +0000 (11:05 +0200)
otherwise we don't do csrf checking etc...

actions/newnotice.php

index 7839074cd16d8de5f1f3661a041b0b77b462d518..ad06c7e266b99cd11e2cf4c5934baf2773d760d8 100644 (file)
@@ -101,6 +101,8 @@ class NewnoticeAction extends FormAction
      */
     protected function handlePost()
     {
      */
     protected function handlePost()
     {
+        parent::handlePost();
+
         assert($this->scoped); // XXX: maybe an error instead...
         $user = $this->scoped->getUser();
         $content = $this->trimmed('status_textarea');
         assert($this->scoped); // XXX: maybe an error instead...
         $user = $this->scoped->getUser();
         $content = $this->trimmed('status_textarea');