allow showchanges to access /boot/previous/changes.txt

This commit is contained in:
ljm42
2023-11-08 08:55:38 -07:00
parent 6d64b53ac7
commit 02a446d8b9
@@ -22,7 +22,7 @@ $login_locale = _var($display,'locale');
require_once "$docroot/webGui/include/Translations.php";
$file = realpath($argv[1]??'');
$valid = ['/var/tmp/','/tmp/plugins/'];
$valid = ['/var/tmp/','/tmp/plugins/','/boot/previous'];
$good = false;
foreach ($valid as $check) if (strncmp($file,$check,strlen($check))===0) $good = true;