]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photoupload.php
got uploads sortof working - database portion doesn't work though.
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photoupload.php
index 286dd4386d98e99b05b1e937d9a577513e24ac0d..aafa2d3fef147a72f1e57c580e693873c53223b4 100644 (file)
@@ -44,6 +44,9 @@ class PhotouploadAction extends Action
     function handle($args)
     {
         parent::handle($args);
+        if($_SERVER['REQUEST_METHOD'] == 'POST') {
+            $this->handlePost();
+        }
         $this->showPage();
     }
 
@@ -88,12 +91,12 @@ class PhotouploadAction extends Action
 
         // CSRF protection
 
-        $token = $this->trimmed('token');
+/*        $token = $this->trimmed('token');
         if (!$token || $token != common_session_token()) {
             $this->showForm(_('There was a problem with your session token. '.
                                'Try again, please.'));
             return;
-        }
+        } */
 
         if($this->arg('upload')) {
             $this->uploadPhoto();