]> git.mxchange.org Git - friendica.git/commitdiff
fix inheritance
authorMike Macgirvin <mike@macgirvin.com>
Tue, 13 Jul 2010 23:18:14 +0000 (16:18 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Tue, 13 Jul 2010 23:18:14 +0000 (16:18 -0700)
mod/item.php

index e4551ac5702c1fd334683bfe0897429ac71c6c79..83854ed159db25b95df4b56df4a97a7c38fcb185 100644 (file)
@@ -5,7 +5,7 @@ function sanitise_acl(&$item) {
 }
 
 function item_post(&$a) {
-
+dbg(2);
        if((! local_user()) && (! remote_user()))
                return;
 
@@ -126,10 +126,10 @@ function item_post(&$a) {
 
                                $r = q("UPDATE `item` SET `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s'
                                        WHERE `id` = %d LIMIT 1",
-                                       intval($parent_item['allow_cid']),
-                                       intval($parent_item['allow_gid']),
-                                       intval($parent_item['deny_cid']),
-                                       intval($parent_item['deny_gid']),
+                                       dbesc($parent_item['allow_cid']),
+                                       dbesc($parent_item['allow_gid']),
+                                       dbesc($parent_item['deny_cid']),
+                                       dbesc($parent_item['deny_gid']),
                                        intval($post_id)
                                );
                        }
@@ -149,7 +149,7 @@ function item_post(&$a) {
                        array(),$foo));
 
        }
-       goaway($a->get_baseurl() . "/profile/$profile_uid");
+//     goaway($a->get_baseurl() . "/profile/$profile_uid");