Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR
parent
6066359944
commit
75d1759e77
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue