Changeset 1810


Ignore:
Timestamp:
2000-12-19T12:56:30+13:00 (23 years ago)
Author:
sjboddie
Message:

Fixed a bug that showed up when using Perl 5.6 on windows

File:
1 edited

Legend:

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

    r1755 r1810  
    7676    # check to make sure we're not reading our own archives
    7777    # or index directory
    78     if ($dirname =~ m%^$ENV{'GSDLHOME'}/.*/import.*/(archives|index)$%) {
     78    my $gsdlhome = quotemeta ($ENV{'GSDLHOME'});
     79    if ($dirname =~ m%^${gsdlhome}/.*?/import.*?/(archives|index)$%) {
    7980    print $outhandle "RecPlug: $dirname appears to be a reference to a Greenstone collection, skipping.\n";
    8081    return 1;
Note: See TracChangeset for help on using the changeset viewer.