mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-26 04:31:08 +00:00
fix undefined access on acme variable
We have 4 call sites of that, one had a fallback - the other three was totally unchecked and triggered already exceptions on panel render ... -.- Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fd2542336b
commit
6ac64c3aed
@ -14,7 +14,7 @@ Ext.define('PVE.Parser', { statics: {
|
|||||||
|
|
||||||
parseACME: function(value) {
|
parseACME: function(value) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return;
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
var res = {};
|
var res = {};
|
||||||
|
@ -205,7 +205,7 @@ Ext.define('PVE.node.ACMEDomainEdit', {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let configkey = olddomain.configkey;
|
let configkey = olddomain.configkey;
|
||||||
let acmeObj = PVE.Parser.parseACME(nodeconfig.acme) || {};
|
let acmeObj = PVE.Parser.parseACME(nodeconfig.acme);
|
||||||
|
|
||||||
if (values.type === 'dns') {
|
if (values.type === 'dns') {
|
||||||
if (!olddomain.configkey || olddomain.configkey === 'acme') {
|
if (!olddomain.configkey || olddomain.configkey === 'acme') {
|
||||||
|
Loading…
Reference in New Issue
Block a user