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/fetch.php | |
parent | 7d01a0eac854c623a74ff7936d5eba9413aefe79 (diff) | |
download | rpg-bfd0f5975e6e3578b4fa0c712e9779a0861fdc72.tar.gz rpg-bfd0f5975e6e3578b4fa0c712e9779a0861fdc72.tar.bz2 |
Input wrapper for exe scripts
Diffstat (limited to 'lib/exe/fetch.php')
-rw-r--r-- | lib/exe/fetch.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php index 143d40f22..60843460e 100644 --- a/lib/exe/fetch.php +++ b/lib/exe/fetch.php @@ -17,10 +17,10 @@ //get input $MEDIA = stripctl(getID('media',false)); // no cleaning except control chars - maybe external - $CACHE = calc_cache($_REQUEST['cache']); - $WIDTH = (int) $_REQUEST['w']; - $HEIGHT = (int) $_REQUEST['h']; - $REV = (int) @$_REQUEST['rev']; + $CACHE = calc_cache($INPUT->str('cache')); + $WIDTH = $INPUT->int('w'); + $HEIGHT = $INPUT->int('h'); + $REV = &$INPUT->ref('rev'); //sanitize revision $REV = preg_replace('/[^0-9]/','',$REV); |