summaryrefslogtreecommitdiff
path: root/plugins/GNUsocialPhotos/actions/photoupload.php
diff options
context:
space:
mode:
authorIan Denhardt <ian@zenhack.net>2010-08-05 13:11:34 -0400
committerIan Denhardt <ian@zenhack.net>2010-08-05 13:11:34 -0400
commit43454eba363997d44815a90264ca072f1d014f21 (patch)
treeca2d01993a7fd89f898424ed729cc957fb32fd2f /plugins/GNUsocialPhotos/actions/photoupload.php
parent16ad70e16f1c4a97e8c5fd4566e87760f67578ec (diff)
got uploads sortof working - database portion doesn't work though.
Diffstat (limited to 'plugins/GNUsocialPhotos/actions/photoupload.php')
-rw-r--r--plugins/GNUsocialPhotos/actions/photoupload.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/GNUsocialPhotos/actions/photoupload.php b/plugins/GNUsocialPhotos/actions/photoupload.php
index 286dd4386..aafa2d3fe 100644
--- a/plugins/GNUsocialPhotos/actions/photoupload.php
+++ b/plugins/GNUsocialPhotos/actions/photoupload.php
@@ -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();