diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-21 18:38:46 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-22 22:02:24 +0100 |
commit | c43fa199bf741589a24c8c7cd23bd0eb7376662e (patch) | |
tree | 9a79857187da1140952144c36b5096a12fe9d06f | |
parent | f1c89c103b6e5109d45a7573f707fb83d8365ce2 (diff) |
luci-proto-openconnect: explicitely escape slashes in regex literals
The unespaced slashes confuse xgettext and likely other source
scanners as well.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js | 2 |
1 files changed, 1 insertions, 1 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 0490ceb5ea..86fd27f294 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 @@ -49,7 +49,7 @@ function validateCert(priv, section_id, value) { for (i = 0; i < lines.length; i++) { if (lines[i].match(beg)) start = true; - else if (start && !lines[i].match(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/)) + else if (start && !lines[i].match(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)) break; } |