Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
Lutim
Commits
e62cb50a
Verified
Commit
e62cb50a
authored
May 07, 2018
by
Luc Didry
Browse files
Fix bug in cache system
parent
cf9504bb
Pipeline
#51353
passed with stages
in 8 minutes and 29 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
e62cb50a
Revision history for Lutim
0.10.4 2018-05-07
- Fix bug in cache system that would allow someone to view an image with an incorrect decryption key
0.10.3 2018-04-26
- Fix another bug on zip file creation
...
...
lib/Lutim/Plugin/Helpers.pm
View file @
e62cb50a
...
...
@@ -111,10 +111,12 @@ sub _render_file {
}
});
if
(
$key
&&
$key
ne
$cache
->
{
key
})
{
my
$tmp
=
$c
->
decrypt
(
$key
,
$path
,
$iv
);
$cache
->
{
asset
}
=
$tmp
;
$c
->
app
->
{
images_cache
}
->
replace
(
$img
->
short
,
{
asset
=>
$
c
->
decrypt
(
$key
,
$path
,
$iv
)
,
asset
=>
$
tmp
,
key
=>
$key
},
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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