mirror of
https://github.com/unraid/api.git
synced 2026-04-23 15:51:24 -05:00
fix(web): htmlspecialchars name & description
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ $serverState = [
|
||||
"connectPluginInstalled" => $connectPluginInstalled,
|
||||
"connectPluginVersion" => $connectPluginVersion,
|
||||
"csrf" => $var['csrf_token'],
|
||||
"description" => $var['COMMENT'] ?? '',
|
||||
"description" => $var['COMMENT'] ? htmlspecialchars($var['COMMENT']) : '',
|
||||
"deviceCount" => $var['deviceCount'],
|
||||
"email" => $myservers['remote']['email'] ?? '',
|
||||
"expireTime" => 1000 * (($var['regTy'] === 'Trial' || strstr($var['regTy'], 'expired')) ? $var['regTm2'] : 0),
|
||||
@@ -56,7 +56,7 @@ $serverState = [
|
||||
"lanIp" => ipaddr(),
|
||||
"locale" => ($_SESSION['locale']) ? $_SESSION['locale'] : 'en_US',
|
||||
"model" => $var['SYS_MODEL'],
|
||||
"name" => $var['NAME'],
|
||||
"name" => htmlspecialchars($var['NAME']),
|
||||
"osVersion" => $var['version'],
|
||||
"protocol" => $_SERVER['REQUEST_SCHEME'],
|
||||
"regGen" => (int)$var['regGen'],
|
||||
|
||||
Reference in New Issue
Block a user