aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-15 18:07:23 -0700
committerfriendica <info@friendica.com>2013-07-15 18:07:23 -0700
commit3bd7c1af238191bd9b1a739b7123fc1ec0296174 (patch)
tree8d6d9279f2f3928dc1b4f3b9ad44de00f7c0b64a /include/items.php
parentf384695e3d0fe86b9a059ab4f289042bf17d2da2 (diff)
downloadvolse-hubzilla-3bd7c1af238191bd9b1a739b7123fc1ec0296174.tar.gz
volse-hubzilla-3bd7c1af238191bd9b1a739b7123fc1ec0296174.tar.bz2
volse-hubzilla-3bd7c1af238191bd9b1a739b7123fc1ec0296174.zip
fix some issues that showed up in the logs.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 898fc9ff8..4a560afc9 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1306,6 +1306,13 @@ function item_store($arr,$force_parent = false) {
return 0;
}
+ // Don't let anybody set these, either intentionally or accidentally
+
+ if(array_key_exists('id',$arr))
+ unset($arr['id']);
+ if(array_key_exists('parent',$arr))
+ unset($arr['parent']);
+
$arr['lang'] = detect_language($arr['body']);
$allowed_languages = get_pconfig($arr['uid'],'system','allowed_languages');