fix array length determining and cleanup
This commit is contained in:
5
website/agenda/planung/showImage.cgi
Normal file → Executable file
5
website/agenda/planung/showImage.cgi
Normal file → Executable file
@@ -72,6 +72,11 @@ sub showImage {
|
||||
}
|
||||
|
||||
my $filename = images::getInternalPath( $config, $params );
|
||||
unless ( defined $filename ) {
|
||||
uac::permissions_denied("could not find path");
|
||||
return;
|
||||
}
|
||||
|
||||
unless ( -e $filename ) {
|
||||
uac::permissions_denied("read $filename");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user