mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
Merge pull request #133 from icewind1991/log-invalid-path
include the invalid path in error message
This commit is contained in:
commit
4b9add1221
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ abstract class AbstractShare implements IShare {
|
|||
protected function verifyPath(string $path): void {
|
||||
foreach ($this->forbiddenCharacters as $char) {
|
||||
if (strpos($path, $char) !== false) {
|
||||
throw new InvalidPathException('Invalid path, "' . $char . '" is not allowed');
|
||||
throw new InvalidPathException("Invalid path \"$path\", \"$char\" is not allowed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue