aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-13 02:00:53 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-13 02:00:53 -0700
commitc6267a2cd2e3a731f44df9288ced508ad90c4ca3 (patch)
tree0558c6669ead159b855e9bd8e63bb24cc8da42f3 /mod/item.php
parent7e16f8cdae597cc8329c3cc9ce769d512ba84085 (diff)
downloadvolse-hubzilla-c6267a2cd2e3a731f44df9288ced508ad90c4ca3.tar.gz
volse-hubzilla-c6267a2cd2e3a731f44df9288ced508ad90c4ca3.tar.bz2
volse-hubzilla-c6267a2cd2e3a731f44df9288ced508ad90c4ca3.zip
turn groups back into numbers
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/mod/item.php b/mod/item.php
index 672084fe8..ff3f41138 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -1,12 +1,7 @@
<?php
-function sanitise_intacl(&$item) {
- $item = '<' . intval(notags(trim($item))) . '>';
-}
-
-
function sanitise_acl(&$item) {
- $item = '<' . notags(trim($item)) . '>';
+ $item = '<' . intval(notags(trim($item))) . '>';
}
function item_post(&$a) {
@@ -35,7 +30,7 @@ function item_post(&$a) {
$str_contact_allow = '';
$contact_allow = $_POST['contact_allow'];
if(is_array($contact_allow)) {
- array_walk($contact_allow,'sanitise_intacl');
+ array_walk($contact_allow,'sanitise_acl');
$str_contact_allow = implode('',$contact_allow);
}
@@ -49,7 +44,7 @@ function item_post(&$a) {
$str_contact_deny = '';
$contact_deny = $_POST['contact_deny'];
if(is_array($contact_deny)) {
- array_walk($contact_deny,'sanitise_intacl');
+ array_walk($contact_deny,'sanitise_acl');
$str_contact_deny = implode('',$contact_deny);
}