From 1d0d765344e155086a65b8b56c1c0ec70d9a8a15 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 4 Feb 2011 13:37:04 -0800 Subject: more error checking on posts --- mod/item.php | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 7125ae1f4..38ef580af 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1,11 +1,17 @@ get_baseurl() . "/" . $_POST['return'] ); + // NOTREACHED + } $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); @@ -454,10 +466,8 @@ function item_post(&$a) { } } - - goaway($a->get_baseurl() . "/" . $_POST['return'] ); - return; // NOTREACHED + // NOTREACHED } @@ -551,7 +561,7 @@ function item_content(&$a) { proc_run($php_path,"include/notifier.php","drop","$drop_id"); goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); - return; //NOTREACHED + //NOTREACHED } else { notice( t('Permission denied.') . EOL); -- cgit v1.2.3