Explorar o código

Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR

Nils Adermann %!s(int64=12) %!d(string=hai) anos
pai
achega
75d1759e77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;