]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/formaction.php
Don't trust local HTML either
[quix0rs-gnu-social.git] / lib / formaction.php
index 5cf05d4a324fede134e48eb9f0024a979f80b6f8..7d74fc47130eaf20f6bb23b116e21eab8f9d6664 100644 (file)
@@ -50,7 +50,7 @@ class FormAction extends ManagedAction
     protected function prepare(array $args=array()) {
         parent::prepare($args);
 
-        $this->form = $this->form ?: $this->action;
+        $this->form = $this->form ?: ucfirst($this->action);
         $this->args['form'] = $this->form;
 
         $this->type = !is_null($this->type) ? $this->type : $this->trimmed('type');