aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-20 15:57:58 -0700
committerFriendika <info@friendika.com>2011-05-20 15:57:58 -0700
commitdb60d6d78f725d7d7ea40ff2ebe3f35df442e33a (patch)
tree4c02054289c78418e9c3f3a8132158c3b9074668
parent0abf2f11c6b3caaad2f9a833f477a094b7488e9a (diff)
downloadvolse-hubzilla-db60d6d78f725d7d7ea40ff2ebe3f35df442e33a.tar.gz
volse-hubzilla-db60d6d78f725d7d7ea40ff2ebe3f35df442e33a.tar.bz2
volse-hubzilla-db60d6d78f725d7d7ea40ff2ebe3f35df442e33a.zip
photo upload plugin size limit is not working, call photo_end hooks in any error return from mainline so html does not leak into json responses bug #77
-rw-r--r--mod/photos.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index a2efda438..17dbf00b6 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -562,6 +562,7 @@ foreach($_FILES AS $key => $val) {
if(($maximagesize) && ($filesize > $maximagesize)) {
notice( t('Image exceeds size limit of ') . $maximagesize . EOL);
@unlink($src);
+ call_hooks('photo_post_end',0);
return;
}
@@ -574,6 +575,7 @@ foreach($_FILES AS $key => $val) {
logger('mod/photos.php: photos_post(): unable to process image' , 'LOGGER_DEBUG');
notice( t('Unable to process image.') . EOL );
@unlink($src);
+ call_hooks('photo_post_end',0);
killme();
}