Show
Ignore:
Timestamp:
18.09.2008 13:07:48 (12 years ago)
Author:
kjdon
Message:

added a -f test on filename in can_process_this_file to prevent this trying to work on directories

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ReadXMLFile.pm

    r17293 r17322  
    164164    my ($filename) = @_; 
    165165 
    166     if ($self->SUPER::can_process_this_file($filename) && $self->check_doctype($filename)) { 
     166    if (-f $filename && $self->SUPER::can_process_this_file($filename) && $self->check_doctype($filename)) { 
    167167    return 1; # its a file for us 
    168168    }