aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-14 18:18:28 -0800
committerfriendica <info@friendica.com>2012-11-14 18:18:28 -0800
commitfcb89c63110b7461c41f5e1b80313391336c02cd (patch)
tree0bb268b81d7d07e5953dfac77fd42d6aba1a5112 /include/text.php
parent0ace91bd0e53b014cdd0e16616bb209ba77c96ad (diff)
downloadvolse-hubzilla-fcb89c63110b7461c41f5e1b80313391336c02cd.tar.gz
volse-hubzilla-fcb89c63110b7461c41f5e1b80313391336c02cd.tar.bz2
volse-hubzilla-fcb89c63110b7461c41f5e1b80313391336c02cd.zip
groups now take xchans, so you can have groups containing channels that you aren't connected with
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/text.php b/include/text.php
index 7f036f502..56f41d797 100644
--- a/include/text.php
+++ b/include/text.php
@@ -310,16 +310,18 @@ function alt_pager(&$a, $i) {
if(! function_exists('expand_acl')) {
function expand_acl($s) {
- // turn string array of angle-bracketed elements into numeric array
- // e.g. "<1><2><3>" => array(1,2,3);
+
+ // turn string array of angle-bracketed elements into string array
+ // e.g. "<123xyz><246qyo><sxo33e>" => array(123xyz,246qyo,sxo33e);
+
$ret = array();
if(strlen($s)) {
$t = str_replace('<','',$s);
$a = explode('>',$t);
foreach($a as $aa) {
- if(intval($aa))
- $ret[] = intval($aa);
+ if($aa)
+ $ret[] = $aa;
}
}
return $ret;
@@ -330,7 +332,7 @@ function expand_acl($s) {
if(! function_exists('sanitise_acl')) {
function sanitise_acl(&$item) {
if(intval($item))
- $item = '<' . intval(notags(trim($item))) . '>';
+ $item = '<' . notags(trim($item)) . '>';
else
unset($item);
}}