aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorChris Case <kahotep@bunda.dreamhost.com>2011-02-14 11:50:08 -0800
committerChris Case <kahotep@bunda.dreamhost.com>2011-02-14 11:50:08 -0800
commit7b265005107f12fa1e5768853e280a8f0b68eeac (patch)
tree8d178994704419c8f9b93289913af92a61caa2e8 /mod/item.php
parent42eb6dd723abd31aaaf6c1608f2dec645f4e20b5 (diff)
parentfe1a37074af43f17aac5859b1aaf37fde4b58ae9 (diff)
downloadvolse-hubzilla-7b265005107f12fa1e5768853e280a8f0b68eeac.tar.gz
volse-hubzilla-7b265005107f12fa1e5768853e280a8f0b68eeac.tar.bz2
volse-hubzilla-7b265005107f12fa1e5768853e280a8f0b68eeac.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index a83373f59..2cc2b9eb2 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -490,7 +490,12 @@ function item_post(&$a) {
}
}
- goaway($a->get_baseurl() . "/" . $_POST['return'] );
+ if((x($_POST,'return')) && strlen($_POST['return']))
+ goaway($a->get_baseurl() . "/" . $_POST['return'] );
+
+ $json = array('success' => 1);
+ echo json_encode($json);
+ killme();
// NOTREACHED
}