aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings/Permcats.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-22 16:49:45 -0800
committerzotlabs <mike@macgirvin.com>2018-01-22 16:49:45 -0800
commit5967360991cb3766a6517759369b6d6fd8563c61 (patch)
tree3179056a6af617e90bf727d2cf075528ecb581e0 /Zotlabs/Module/Settings/Permcats.php
parentdeede8e2ddb58db0bedf437f25c56c9fc050f181 (diff)
downloadvolse-hubzilla-5967360991cb3766a6517759369b6d6fd8563c61.tar.gz
volse-hubzilla-5967360991cb3766a6517759369b6d6fd8563c61.tar.bz2
volse-hubzilla-5967360991cb3766a6517759369b6d6fd8563c61.zip
hubzilla issue #920 - unable to delete permission groups with space in name
Diffstat (limited to 'Zotlabs/Module/Settings/Permcats.php')
-rw-r--r--Zotlabs/Module/Settings/Permcats.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Settings/Permcats.php b/Zotlabs/Module/Settings/Permcats.php
index 336f69653..535399083 100644
--- a/Zotlabs/Module/Settings/Permcats.php
+++ b/Zotlabs/Module/Settings/Permcats.php
@@ -49,7 +49,7 @@ class Permcats {
if(argc() > 2)
- $name = argv(2);
+ $name = hex2bin(argv(2));
if(argc() > 3 && argv(3) === 'drop') {
\Zotlabs\Lib\Permcat::delete(local_channel(),$name);
@@ -70,7 +70,7 @@ class Permcats {
if(($pc['name']) && ($name) && ($pc['name'] == $name))
$existing = $pc['perms'];
if(! $pc['system'])
- $permcats[$pc['name']] = $pc['localname'];
+ $permcats[bin2hex($pc['name'])] = $pc['localname'];
}
}