aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_upload.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-02 19:06:36 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-02 19:06:36 -0700
commit93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e (patch)
tree87dad282e59c5472ee878f6faf0e96630c18c3c9 /mod/wall_upload.php
parent3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e (diff)
downloadvolse-hubzilla-93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e.tar.gz
volse-hubzilla-93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e.tar.bz2
volse-hubzilla-93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e.zip
fixup image on wall
Diffstat (limited to 'mod/wall_upload.php')
-rw-r--r--mod/wall_upload.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
index d2e732545..bd7cf8560 100644
--- a/mod/wall_upload.php
+++ b/mod/wall_upload.php
@@ -9,6 +9,9 @@ function wall_upload_post(&$a) {
killme();
}
+ if(! x($_FILES,'userfile'))
+ killme();
+
$src = $_FILES['userfile']['tmp_name'];
$filename = basename($_FILES['userfile']['name']);
$filesize = intval($_FILES['userfile']['size']);
@@ -87,8 +90,8 @@ function wall_upload_post(&$a) {
}
$basename = basename($filename);
+ echo "<br /><br /><img src=\"".$a->get_baseurl(). "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /><br /><br />";
- echo "<img src=\"".$a->get_baseurl(). "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" />";
killme();
-
+ return; // NOTREACHED
} \ No newline at end of file