diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-18 16:41:43 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-29 13:56:31 +0200 |
commit | d5525a38f185e37fe0101bc7ef6e67abf59f98f8 (patch) | |
tree | 9742988595a30be5d45dbb82ee7285a429f03929 /Zotlabs/Widget | |
parent | e9a5af6109a4a83a644432a2f39b47eb96303f4f (diff) | |
download | volse-hubzilla-d5525a38f185e37fe0101bc7ef6e67abf59f98f8.tar.gz volse-hubzilla-d5525a38f185e37fe0101bc7ef6e67abf59f98f8.tar.bz2 volse-hubzilla-d5525a38f185e37fe0101bc7ef6e67abf59f98f8.zip |
various input filter fixes
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Wiki_pages.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Wiki_pages.php b/Zotlabs/Widget/Wiki_pages.php index bad451475..f992b3f93 100644 --- a/Zotlabs/Widget/Wiki_pages.php +++ b/Zotlabs/Widget/Wiki_pages.php @@ -10,6 +10,12 @@ class Wiki_pages { $channelname = ((array_key_exists('channel',$arr)) ? $arr['channel'] : ''); $c = channelx_by_nick($channelname); + if(! $c) + $c = \App::get_channel(); + + if(! $c) + return ''; + $wikiname = ''; if(array_key_exists('refresh', $arr)) { $not_refresh = (($arr['refresh']=== true) ? false : true); @@ -36,6 +42,7 @@ class Wiki_pages { } } + $can_create = perm_is_allowed(\App::$profile['uid'],get_observer_hash(),'write_wiki'); $can_delete = ((local_channel() && (local_channel() == \App::$profile['uid'])) ? true : false); |