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
cf9504bb
Verified
Commit
cf9504bb
authored
Apr 26, 2018
by
Luc Didry
Browse files
Fix another bug on zip file creation (missing IV on decryption)
parent
36a007d2
Pipeline
#50668
canceled with stages
Changes
2
Pipelines
16
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
cf9504bb
Revision history for Lutim
0.10.3 2018-04-26
- Fix another bug on zip file creation
0.10.2 2018-04-24
- Fix bug on zip file creation
- Fix bug on zip file creation
0.10.1 2018-04-15
- Fix bug on theme creation (#73)
...
...
lib/Lutim/Controller.pm
View file @
cf9504bb
...
...
@@ -584,7 +584,7 @@ sub short {
if
(
defined
(
$image
->
width
)
&&
defined
(
$image
->
height
))
{
(
$width
,
$height
)
=
(
$image
->
width
,
$image
->
height
);
}
elsif
(
$im_loaded
)
{
my
$upload
=
$c
->
decrypt
(
$key
,
$image
->
path
);
my
$upload
=
$c
->
decrypt
(
$key
,
$image
->
path
,
$image
->
iv
);
my
$im
=
Image::
Magick
->
new
;
$im
->
BlobToImage
(
$upload
->
slurp
);
$width
=
$im
->
Get
('
width
');
...
...
@@ -724,7 +724,7 @@ sub zip {
}
if
(
$key
)
{
$zip
->
addString
(
$c
->
decrypt
(
$key
,
$path
),
"
images/
$filename
");
$zip
->
addString
(
$c
->
decrypt
(
$key
,
$path
,
$image
->
iv
),
"
images/
$filename
");
}
else
{
$zip
->
addFile
(
$path
,
"
images/
$filename
");
}
...
...
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