mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
include the invalid path in error message
This commit is contained in:
parent
e6904cbe75
commit
6f5b94d7fe
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ abstract class AbstractShare implements IShare {
|
||||||
protected function verifyPath(string $path): void {
|
protected function verifyPath(string $path): void {
|
||||||
foreach ($this->forbiddenCharacters as $char) {
|
foreach ($this->forbiddenCharacters as $char) {
|
||||||
if (strpos($path, $char) !== false) {
|
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