git://git.onelab.eu
/
plewww.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
brute-force changed access to $_GET['key'] to use get_array instead
[plewww.git]
/
planetlab
/
sites
/
site.php
diff --git
a/planetlab/sites/site.php
b/planetlab/sites/site.php
index
3212291
..
e6aa096
100644
(file)
--- a/
planetlab/sites/site.php
+++ b/
planetlab/sites/site.php
@@
-24,7
+24,7
@@
require_once 'toggle.php';
// --------------------
// recognized URL arguments
// --------------------
// recognized URL arguments
-$site_id = intval(
$_GET['id']
);
+$site_id = intval(
get_array($_GET, 'id')
);
if ( ! $site_id ) { plc_error('Malformed URL - id not set'); return; }
////////////////////
if ( ! $site_id ) { plc_error('Malformed URL - id not set'); return; }
////////////////////