# Check .htaccess allows access to generated images
# Check .htaccess allows access to generated images
my$webdotdir=bz_locations()->{'webdotdir'};
my$webdotdir=bz_locations()->{'webdotdir'};
if(-e"$webdotdir/.htaccess"){
if(-e"$webdotdir/.htaccess"){
openHTACCESS,"$webdotdir/.htaccess";
openHTACCESS,"<","$webdotdir/.htaccess";
if(!grep(/ \\\.png\$/,<HTACCESS>)){
if(!grep(/ \\\.png\$/,<HTACCESS>)){
return"Dependency graph images are not accessible.\nAssuming that you have not modified the file, delete $webdotdir/.htaccess and re-run checksetup.pl to rectify.\n";
return"Dependency graph images are not accessible.\nAssuming that you have not modified the file, delete $webdotdir/.htaccess and re-run checksetup.pl to rectify.\n";