aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_poll.php2
-rw-r--r--mod/wall_upload.php7
2 files changed, 6 insertions, 3 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php
index e3da6c952..dadcd3148 100644
--- a/mod/dfrn_poll.php
+++ b/mod/dfrn_poll.php
@@ -19,7 +19,7 @@ function dfrn_poll_init(&$a) {
return;
- if(($dfrn_id == '*') && ($a->argc > 1) && (intval($a->argv[1]))) {
+ if(($dfrn_id == '*') && ($a->argc > 1)) {
$o = get_feed_for($a,'*', $a->argv[1],$last_update);
echo $o;
killme();
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