Fix plugins not able to check for updates to themselves

This commit is contained in:
Squidly271
2023-02-14 15:36:54 -05:00
committed by GitHub
parent 4f309cee75
commit aa7f175fe6

View File

@@ -41,7 +41,7 @@ switch ($_POST['action']) {
$plugin = $options['plugin'] ?? '';
$name = unbundle($options['name'] ?? $plugin);
$file = "/var/log/plugins/$plugin";
$file = "/boot/config/plugins/$plugin";
$file = realpath($file)==$file ? $file : "";
if ( ! $plugin || ! file_exists($file) ) {
@@ -98,4 +98,4 @@ switch ($_POST['action']) {
file_put_contents("/tmp/reboot_notifications",$newReboots);
break;
}
?>
?>