mirror of
https://github.com/unraid/api.git
synced 2026-05-03 13:40:36 -05:00
fix: prevent corrupt case model in state.php (#874)
fix: prevent corruprt case model in state.php
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ class ServerState
|
|||||||
$this->osVersionBranch = trim(@exec('plugin category /var/log/plugins/unRAIDServer.plg') ?? 'stable');
|
$this->osVersionBranch = trim(@exec('plugin category /var/log/plugins/unRAIDServer.plg') ?? 'stable');
|
||||||
|
|
||||||
$caseModelFile = '/boot/config/plugins/dynamix/case-model.cfg';
|
$caseModelFile = '/boot/config/plugins/dynamix/case-model.cfg';
|
||||||
$this->caseModel = file_exists($caseModelFile) ? file_get_contents($caseModelFile) : '';
|
$this->caseModel = file_exists($caseModelFile) ? htmlspecialchars(@file_get_contents($caseModelFile), ENT_HTML5, 'UTF-8') : '';
|
||||||
|
|
||||||
$this->rebootDetails = new RebootDetails();
|
$this->rebootDetails = new RebootDetails();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user