From 3f1784fba7dcd4d5799b511aaca08e4040251fae Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 21 Jan 2020 18:38:46 +0100 Subject: [PATCH] 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 (cherry picked from commit c43fa199bf741589a24c8c7cd23bd0eb7376662e) --- .../htdocs/luci-static/resources/protocol/openconnect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0490ceb5e..86fd27f29 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; } -- 2.25.1