mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
normalize slashes in notify
This commit is contained in:
parent
822f924967
commit
01b61508a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue