Changeset 5 for trunk

Show
Ignore:
Timestamp:
02/09/06 08:38:20 (3 years ago)
Author:
hans
Message:

Added correct handling of "/foobar" type paths in isAbolute() method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/system/io/Win32FileSystem.php

    r1 r5  
    300300        $pl = (int) $f->getPrefixLength(); 
    301301        $p  = (string) $f->getPath(); 
    302         return ((($pl === 2) && ($p{0} === $this->slash)) || ($pl === 3)); 
     302        return ((($pl === 2) && ($p{0} === $this->slash)) || ($pl === 3) || ($pl === 1 && $p{0} === $this->slash)); 
    303303    } 
    304304