Helpful Information
 
 
Category: CGI Scripts / Perl
Be careful! Search.cgi now traverses a lot of directories

Search.cgi now traverses a lot of new directories created for Westhost 2.0.

Either include the entries in "search_define.pl" as the "exclusion list" or better (at least for me that I don't need to traverse any subdirectory) delete the following lines of search.cgi:

#
# CASE 3) File is a directory so traverse down it.
#
# if (-d $fullpath) {
# if (-r $fullpath && -x $fullpath) {
# $cur_dir++;
# $dirs[$cur_dir] = $fullpath;
# opendir("DIR$cur_dir", $dirs[$cur_dir]);
# next;
# } else {
# # Since the dir does not have r or x perms we go on
# next;
# }
# } # End of Case 3 (File is directory

Regards,
Diego.










privacy (GDPR)