diff options
author | Hakan Sandell <sandell.hakan@gmail.com> | 2012-09-08 15:03:03 +0200 |
---|---|---|
committer | Hakan Sandell <sandell.hakan@gmail.com> | 2012-09-08 15:03:03 +0200 |
commit | 5373d8473e7ebb71c7d2b85a36a511358343d1ac (patch) | |
tree | d41b0a15f8b1f84769ad4608843f136b574a3985 | |
parent | 356d9c9ea239fe5fe0ac5ecc2c294e768f672059 (diff) | |
download | rpg-5373d8473e7ebb71c7d2b85a36a511358343d1ac.tar.gz rpg-5373d8473e7ebb71c7d2b85a36a511358343d1ac.tar.bz2 |
Replacing $_REQUEST variables with $INPUT wrapper, fetch.php
-rw-r--r-- | lib/exe/fetch.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php index 150812b55..e8f189256 100644 --- a/lib/exe/fetch.php +++ b/lib/exe/fetch.php @@ -152,12 +152,12 @@ function sendFile($file,$mime,$dl,$cache){ * @returns array(STATUS, STATUSMESSAGE) */ function checkFileStatus(&$media, &$file, $rev='') { - global $MIME, $EXT, $CACHE; + global $MIME, $EXT, $CACHE, $INPUT; //media to local file if(preg_match('#^(https?)://#i',$media)){ //check hash - if(substr(md5(auth_cookiesalt().$media),0,6) != $_REQUEST['hash']){ + if(substr(md5(auth_cookiesalt().$media),0,6) != $INPUT->str('hash')){ return array( 412, 'Precondition Failed'); } //handle external images |