aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-02-16 08:06:04 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-02-16 08:06:04 +0100
commit9e746b504fd0f1367cce6353ac51f71327d8fb75 (patch)
treea86bf9534cbb2ac6c497cf1874697350a387fd9e /mod/item.php
parent53dff2204bf2cbe46b6cbdb7174fa0cf1a7162b1 (diff)
parent97723ad69f71c716bd0e68eec95944b5469008ec (diff)
downloadvolse-hubzilla-9e746b504fd0f1367cce6353ac51f71327d8fb75.tar.gz
volse-hubzilla-9e746b504fd0f1367cce6353ac51f71327d8fb75.tar.bz2
volse-hubzilla-9e746b504fd0f1367cce6353ac51f71327d8fb75.zip
Merge branch 'master' of github.com:fabrixxm/friendika
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
}