Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
peupleLà
osTicket-1.8
Commits
970e1b58
Commit
970e1b58
authored
Sep 11, 2014
by
Luc Didry
Browse files
Trad : scp/file.php
parent
7dd60678
Changes
1
Hide whitespace changes
Inline
Side-by-side
scp/file.php
View file @
970e1b58
...
...
@@ -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
o
r
invalid
fil
e. #'
.
Format
::
htmlchars
(
$_GET
[
'h'
]));
die
(
'
Fichier inconnu
o
u
invalide. #'
.
Format
::
htmlchars
(
$_GET
[
'h'
]));
$file
->
download
();
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment