mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update FileManager.php
This commit is contained in:
parent
b6e66da6f6
commit
d78bc716f4
1 changed files with 2 additions and 3 deletions
|
@ -53,12 +53,11 @@ class FileManager extends Component
|
||||||
|
|
||||||
public function back()
|
public function back()
|
||||||
{
|
{
|
||||||
|
$this->canIBack = false;
|
||||||
|
|
||||||
$newRealPath = dirname($this->currentRealPath);
|
$newRealPath = dirname($this->currentRealPath);
|
||||||
|
|
||||||
if (Str::startsWith($newRealPath, $this->domainHomeRoot)) {
|
if (Str::startsWith($newRealPath, $this->domainHomeRoot)) {
|
||||||
$this->currentRealPath = $newRealPath;
|
$this->currentRealPath = $newRealPath;
|
||||||
} else {
|
|
||||||
$this->canIBack = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue