mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1
This commit is contained in:
parent
7a291481e9
commit
47643f5b08
@ -168,6 +168,10 @@ $playback_file_split = array();
|
||||
$playbackbuffer = "";
|
||||
|
||||
if($argv[1]=="playback" or $argv[1]=="run") {
|
||||
if(!file_exists("/etc/phpshellsessions/{$argv[2]}")) {
|
||||
echo "Could not locate playback file.";
|
||||
exit;
|
||||
}
|
||||
playback_file($argv[2]);
|
||||
exit;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user