fix - Phishing Bug... take that spammers!

This commit is contained in:
Roy Johnson 2006-11-07 22:45:27 +00:00
parent f5832ee280
commit c6083606db
2 changed files with 8 additions and 1 deletions

View file

@ -139,7 +139,13 @@ sub getValueFromPost {
my $storage = WebGUI::Storage::Image->get($self->session, $id);
if (defined $storage) {
foreach my $file (@{$storage->getFiles}) {
$storage->generateThumbnail($file) if ($storage->isImage($file));
if ($storage->isImage($file)) {
$storage->generateThumbnail($file);
}
else {
$storage->delete;
$id = undef;
}
}
}
}