diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index b124c3af9..5cfa8cf81 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -15,6 +15,7 @@ - fixed #11400: Active Sessions Deletion - fixed #11399: m4a missin - fixed #11406: AdSku table mssing karma column + - fixed #11410: Too much errors in log after fix #11346 7.8.11 - fixed #11362: Unable to checkout with ITransact plugin diff --git a/lib/WebGUI/Storage.pm b/lib/WebGUI/Storage.pm index a75149a0b..4c3f7a078 100644 --- a/lib/WebGUI/Storage.pm +++ b/lib/WebGUI/Storage.pm @@ -1244,8 +1244,11 @@ The file to retrieve the thumbnail for. =cut sub getThumbnailUrl { - my $self = shift; - my $filename = shift; + my $self = shift; + my $filename = shift; + if (! $self->isImage($filename)) { + return ''; + } if (! defined $filename) { $self->session->errorHandler->error("Can't find a thumbnail url without a filename."); return '';