diff options
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 14fc8f6d35..0490ceb5ea 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; |