Ignore:
Timestamp:
1999-08-31T20:54:45+12:00 (25 years ago)
Author:
rjmcnab
Message:

Changed the directory separator on windows to \ to make the code more
robust.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/util.pm

    r135 r488  
    341341
    342342    # remove duplicate slashes and remove the last slash
    343     $filename =~ s/[\\\/]+/\//g;
    344     $filename =~ s/\/$//;
     343    if ($ENV{'GSDLOS'} =~ /^windows$/i) {
     344    $filename =~ s/[\\\/]+/\\/g;
     345    } else {
     346    $filename =~ s/[\\\/]+/\//g;
     347    }
     348    $filename =~ s/[\\\/]$//;
    345349
    346350    return $filename;
Note: See TracChangeset for help on using the changeset viewer.