Verified Commit cf9504bb authored by Luc Didry's avatar Luc Didry
Browse files

Fix another bug on zip file creation (missing IV on decryption)

parent 36a007d2
Pipeline #50668 canceled with stages
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)
......
......@@ -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");
}
......
Markdown is supported
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