mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 02:21:50 +08:00
luci-proto-openconnect: correctness fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ function validateCert(priv, section_id, value) {
|
||||
|
||||
const beg = priv ? /^-----BEGIN (RSA )?PRIVATE KEY-----$/ : /^-----BEGIN CERTIFICATE-----$/;
|
||||
const end = priv ? /^-----END (RSA )?PRIVATE KEY-----$/ : /^-----END CERTIFICATE-----$/;
|
||||
const lines = value.trim().split(/[\r?\n]/);
|
||||
const lines = value.trim().split(/[\r\n]/);
|
||||
const base64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
||||
const errmsg = _('This does not look like a valid PEM file');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user