diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-28 22:04:10 -0400 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-28 22:04:10 -0400 |
commit | bfd0f5975e6e3578b4fa0c712e9779a0861fdc72 (patch) | |
tree | 53c6fbab61f8178f567c293521fad66fa91099d6 /lib/exe/indexer.php | |
parent | 7d01a0eac854c623a74ff7936d5eba9413aefe79 (diff) | |
download | rpg-bfd0f5975e6e3578b4fa0c712e9779a0861fdc72.tar.gz rpg-bfd0f5975e6e3578b4fa0c712e9779a0861fdc72.tar.bz2 |
Input wrapper for exe scripts
Diffstat (limited to 'lib/exe/indexer.php')
-rw-r--r-- | lib/exe/indexer.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index 738a29503..e149770c0 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -20,10 +20,10 @@ if(!$defer){ sendGIF(); // send gif } -$ID = cleanID($_REQUEST['id']); +$ID = cleanID($INPUT->str('id')); // Catch any possible output (e.g. errors) -$output = isset($_REQUEST['debug']) && $conf['allowdebug']; +$output = $INPUT->has('debug') && $conf['allowdebug']; if(!$output) ob_start(); // run one of the jobs @@ -261,7 +261,8 @@ function sendDigest() { * @author Harry Fuecks <fuecks@gmail.com> */ function sendGIF(){ - if(isset($_REQUEST['debug'])){ + global $INPUT; + if($INPUT->has('debug')){ header('Content-Type: text/plain'); return; } |