aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-13 14:36:52 -0700
committerfriendica <info@friendica.com>2012-03-13 14:36:52 -0700
commitacc4bbeb6ebc832da2a8b5a37b764a6a53dd1214 (patch)
tree018927c54c16f68aeae7153c81c404d3e9cbbc7d /mod/network.php
parent5a4167646553e589cf9647c0e0d0446e3f5fd672 (diff)
parent59766b944c9ea3a45b1d7e8593f7bb5d4a0b8445 (diff)
downloadvolse-hubzilla-acc4bbeb6ebc832da2a8b5a37b764a6a53dd1214.tar.gz
volse-hubzilla-acc4bbeb6ebc832da2a8b5a37b764a6a53dd1214.tar.bz2
volse-hubzilla-acc4bbeb6ebc832da2a8b5a37b764a6a53dd1214.zip
Merge pull request #129 from CatoTH/master
CSRF-Protection and minor changes
Diffstat (limited to 'mod/network.php')
-rwxr-xr-xmod/network.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/mod/network.php b/mod/network.php
index 861b5ab73..7e7a95841 100755
--- a/mod/network.php
+++ b/mod/network.php
@@ -44,7 +44,7 @@ function network_init(&$a) {
}
$a->page['aside'] .= group_side('network','network',true,$group_id);
- $a->page['aside'] .= networks_widget($a->get_baseurl() . '/network',(($_GET['nets']) ? $_GET['nets'] : ''));
+ $a->page['aside'] .= networks_widget($a->get_baseurl() . '/network',(x($_GET, 'nets') ? $_GET['nets'] : ''));
$a->page['aside'] .= saved_searches($search);
}
@@ -132,15 +132,15 @@ function network_content(&$a, $update = 0) {
$starred_active = 'active';
}
- if($_GET['bmark']) {
+ if(x($_GET,'bmark')) {
$bookmarked_active = 'active';
}
- if($_GET['conv']) {
+ if(x($_GET,'conv')) {
$conv_active = 'active';
}
- if($_GET['spam']) {
+ if(x($_GET,'spam')) {
$spam_active = 'active';
}
@@ -248,7 +248,7 @@ function network_content(&$a, $update = 0) {
$def_acl = array('allow_cid' => '<' . intval($cid) . '>');
if(! $update) {
- if(group) {
+ if($group) {
if(($t = group_public_members($group)) && (! get_pconfig(local_user(),'system','nowarn_insecure'))) {
notice( sprintf( tt('Warning: This group contains %s member from an insecure network.',
'Warning: This group contains %s members from an insecure network.',
@@ -498,7 +498,9 @@ function network_content(&$a, $update = 0) {
$items = conv_sort($items,$ordering);
- }
+ } else {
+ $items = array();
+ }
}