Skip to content
Snippets Groups Projects
Commit 5373d847 authored by Hakan Sandell's avatar Hakan Sandell
Browse files

Replacing $_REQUEST variables with $INPUT wrapper, fetch.php

parent 356d9c9e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment