diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-16 09:30:54 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-16 09:31:24 +0200 |
commit | 7a010b11781222622673c948a06acf0929b98d0a (patch) | |
tree | 3f21a434a5010673aac61ccd8f7d4d187f2a8578 /protocols/luci-proto-openconnect/htdocs | |
parent | 0321d47fe9fcaace3801b1c9586cbad76b673607 (diff) |
luci-proto-openconnect: make PEM values optional
Fixes: #3191
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-openconnect/htdocs')
-rw-r--r-- | protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js b/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js index 14fc8f6d3..0490ceb5e 100644 --- a/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js +++ b/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js @@ -43,6 +43,9 @@ function validateCert(priv, section_id, value) { start = false, i; + if (value === null || value === '') + return true; + for (i = 0; i < lines.length; i++) { if (lines[i].match(beg)) start = true; |