Browse Source

Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR

Nils Adermann 12 years ago
parent
commit
75d1759e77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Package/Archiver/ArchivableFilesFinder.php

+ 1 - 1
src/Composer/Package/Archiver/ArchivableFilesFinder.php

@@ -55,7 +55,7 @@ class ArchivableFilesFinder extends \IteratorIterator
                 $relativePath = preg_replace(
                     '#^'.preg_quote($sources, '#').'#',
                     '',
-                    str_replace(PATH_SEPARATOR, '/', $file->getRealPath())
+                    str_replace(DIRECTORY_SEPARATOR, '/', $file->getRealPath())
                 );
 
                 $exclude = false;