normalize slashes in notify

This commit is contained in:
Robin Appelman 2016-05-13 16:31:46 +02:00
commit 01b61508a7

View file

@ -360,7 +360,7 @@ class Share extends AbstractShare {
$connection->write($command . PHP_EOL); $connection->write($command . PHP_EOL);
$connection->read(function ($line) use ($callback, $path) { $connection->read(function ($line) use ($callback, $path) {
$code = (int)substr($line, 0, 4); $code = (int)substr($line, 0, 4);
$subPath = substr($line, 5); $subPath = str_replace('\\', '/', substr($line, 5));
if ($path === '') { if ($path === '') {
return $callback($code, $subPath); return $callback($code, $subPath);
} else { } else {