Skip to content

Commit

Permalink
Security fix
Browse files Browse the repository at this point in the history
Signed-off-by: Valérian Saliou <valerian@valeriansaliou.name>
  • Loading branch information
valeriansaliou committed Aug 5, 2015
1 parent 0024ae0 commit bdb099b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/file-share.php
Expand Up @@ -61,7 +61,7 @@
$thumb_xml = '';

// Forbidden file?
if(!isSafeAllowed($filename) || !isSafeAllowed($name.'.'.$ext)) {
if(!isSafeAllowed($user) || !isSafeAllowed($filename) || !isSafeAllowed($name.'.'.$ext)) {
exit(
'<jappix xmlns=\'jappix:file:post\'>
<error>forbidden-type</error>
Expand Down

0 comments on commit bdb099b

Please sign in to comment.