mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 15:24:03 +00:00
Validate SQLite DB name unconditionally in getPath()
This commit is contained in:
parent
7683befa54
commit
e48d822772
1 changed files with 2 additions and 2 deletions
|
|
@ -157,12 +157,12 @@ class SQLiteDatabaseManager implements TenantDatabaseManager
|
||||||
|
|
||||||
public function getPath(string $name): string
|
public function getPath(string $name): string
|
||||||
{
|
{
|
||||||
|
$this->validateDatabaseName($name);
|
||||||
|
|
||||||
if (static::$path) {
|
if (static::$path) {
|
||||||
return rtrim(static::$path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $name;
|
return rtrim(static::$path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->validateDatabaseName($name);
|
|
||||||
|
|
||||||
return database_path($name);
|
return database_path($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue