1
0
Fork 0

Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR

pull/1567/head
Nils Adermann 2013-03-26 13:04:07 +01:00
parent 6066359944
commit 75d1759e77
1 changed files with 1 additions and 1 deletions

View File

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