public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] fix #5117: ui: node info: avoid invalid array access for certain foreign kernels
@ 2023-12-14 10:40 Fiona Ebner
  2023-12-14 12:53 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2023-12-14 10:40 UTC (permalink / raw)
  To: pbs-devel

with custom build date format, which would prevent the panel from loading.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
 www/panel/NodeInfo.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
index 72f97c7c..454986ef 100644
--- a/www/panel/NodeInfo.js
+++ b/www/panel/NodeInfo.js
@@ -151,7 +151,7 @@ Ext.define('PBS.NodeInfoPanel', {
 		    return data.kversion;
 		}
 		let kernel = data['current-kernel'];
-		let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
+		let buildDate = kernel.version.match(/\((.+)\)\s*$/)?.[1] ?? 'unknown';
 		return `${kernel.sysname} ${kernel.release} (${buildDate})`;
 	    },
 	    value: '',
-- 
2.39.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup] fix #5117: ui: node info: avoid invalid array access for certain foreign kernels
  2023-12-14 10:40 [pbs-devel] [PATCH proxmox-backup] fix #5117: ui: node info: avoid invalid array access for certain foreign kernels Fiona Ebner
@ 2023-12-14 12:53 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2023-12-14 12:53 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Fiona Ebner

Am 14/12/2023 um 11:40 schrieb Fiona Ebner:
> with custom build date format, which would prevent the panel from loading.
> 
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
>  www/panel/NodeInfo.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-14 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14 10:40 [pbs-devel] [PATCH proxmox-backup] fix #5117: ui: node info: avoid invalid array access for certain foreign kernels Fiona Ebner
2023-12-14 12:53 ` [pbs-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal