Changeset 7607


Ignore:
Timestamp:
06/01/10 03:52:50 (2 years ago)
Author:
GeorgeClark
Message:

Item5420: Also check Windows style paths. Probably not optimal and needs testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Configure/Checkers/TemplatePath.pm

    r7606 r7607  
    2525        } 
    2626 
    27         #if (substr($orig, 0, 13) eq '$Foswiki::cfg') { 
    2827        my ($cfgparm) = $orig =~ m/.*(\$Foswiki::cfg\{.*\})/; 
    2928        if ($cfgparm) { 
     
    3837        my ( $dir, $file ) = $path =~ m#^\s*([^\$]+)(.*)$#; 
    3938 
    40         if ( $dir && substr( $dir, 0, 1 ) eq '/' ) { 
     39        if ( $dir && (substr( $dir, 0, 1 ) eq '/' || substr( $dir, 1, 1 ) eq ':' )) { 
    4140            $e .= $this->ERROR("Path $dir not found, at $orig") 
    4241              unless ( -e $dir && -d $dir ); 
Note: See TracChangeset for help on using the changeset viewer.