summaryrefslogtreecommitdiff
path: root/inc/fetch.functions.php
diff options
context:
space:
mode:
authorKlap-in <klapinklapin@gmail.com>2013-06-09 22:21:37 +0200
committerKlap-in <klapinklapin@gmail.com>2013-06-09 22:21:37 +0200
commit3faed524fdb5c7c51a60a92e9715dd5425389c35 (patch)
treeb37b25628bdf2fde079c4f2800d2fc118d726d0e /inc/fetch.functions.php
parent3e7e6067571e660cd835164c22d0973aa6343408 (diff)
parent62765857f84626449d6c53b1a46c462a37e5083a (diff)
downloadrpg-3faed524fdb5c7c51a60a92e9715dd5425389c35.tar.gz
rpg-3faed524fdb5c7c51a60a92e9715dd5425389c35.tar.bz2
Merge remote-tracking branch 'origin/master' into fetchftp
Diffstat (limited to 'inc/fetch.functions.php')
-rw-r--r--inc/fetch.functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fetch.functions.php b/inc/fetch.functions.php
index e78bbf103..53ade3555 100644
--- a/inc/fetch.functions.php
+++ b/inc/fetch.functions.php
@@ -102,7 +102,7 @@ function checkFileStatus(&$media, &$file, $rev = '', $width=0, $height=0) {
//media to local file
if(media_isexternal($media)) {
//check hash
- if(substr(md5(auth_cookiesalt().$media), 0, 6) !== $INPUT->str('hash')) {
+ if(substr(PassHash::hmac('md5', $media, auth_cookiesalt()), 0, 6) !== $INPUT->str('hash')) {
return array(412, 'Precondition Failed');
}
//handle external images