aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-20 16:20:32 -0800
committerfriendica <info@friendica.com>2013-11-20 16:20:32 -0800
commit5315c88621719c93235f4d2d8a93eed29d7ae851 (patch)
tree3475bb9c25cd0f133b24a7df444f600144806761 /include
parentd7ee552c570f4fca760c3d1573f32c005cf73bb8 (diff)
downloadvolse-hubzilla-5315c88621719c93235f4d2d8a93eed29d7ae851.tar.gz
volse-hubzilla-5315c88621719c93235f4d2d8a93eed29d7ae851.tar.bz2
volse-hubzilla-5315c88621719c93235f4d2d8a93eed29d7ae851.zip
webpage edit - losing the ability to pass unfiltered html and perhaps some php due to unsetting uid too early in item_store_update()
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index fabad6a63..9fbd3fd8a 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1844,8 +1844,6 @@ function item_store_update($arr,$allow_exec = false) {
$arr['item_flags'] = intval($arr['item_flags']) | $orig[0]['item_flags'];
$arr['item_restrict'] = intval($arr['item_restrict']) | $orig[0]['item_restrict'];
- unset($arr['id']);
- unset($arr['uid']);
if(array_key_exists('edit',$arr))
unset($arr['edit']);
@@ -1911,7 +1909,8 @@ function item_store_update($arr,$allow_exec = false) {
}
-
+ unset($arr['id']);
+ unset($arr['uid']);
unset($arr['aid']);
unset($arr['mid']);
unset($arr['parent']);