mirror of
https://github.com/unraid/webgui.git
synced 2026-04-21 01:08:42 -05:00
allow showchanges to access /boot/previous/changes.txt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user