aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-15 14:19:54 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-15 14:19:54 +0100
commit70cf5ae3c79ad1b94e9d5fab82325d55a12761c0 (patch)
tree5aeffd36453e9b890442a682623c84aee276836e /mod/item.php
parentdd8bbe820294ce6e0ca2e17f8783cb125b9871db (diff)
parent473786d3a09a2210b2fe55a00d2bac5d8d207d52 (diff)
downloadvolse-hubzilla-70cf5ae3c79ad1b94e9d5fab82325d55a12761c0.tar.gz
volse-hubzilla-70cf5ae3c79ad1b94e9d5fab82325d55a12761c0.tar.bz2
volse-hubzilla-70cf5ae3c79ad1b94e9d5fab82325d55a12761c0.zip
Merge remote-tracking branch 'friendika-master/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
}