Commit 970e1b58 authored by Luc Didry's avatar Luc Didry
Browse files

Trad : scp/file.php

parent 7dd60678
......@@ -24,7 +24,7 @@ $h=trim($_GET['h']);
if(!$h || strlen($h)!=64 //32*2
|| !($file=AttachmentFile::lookup(substr($h,0,32))) //first 32 is the file hash.
|| strcasecmp($file->getDownloadHash(), $h)) //next 32 is file id + session hash.
die('Unknown or invalid file. #'.Format::htmlchars($_GET['h']));
die('Fichier inconnu ou invalide. #'.Format::htmlchars($_GET['h']));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment