From ba0f505e34128d59ee84edb5e1a1bc8f6b8c6c44 Mon Sep 17 00:00:00 2001 From: df Date: Sat, 10 Apr 2021 01:05:19 +0100 Subject: [PATCH] Ensure , is escaped in ::js::escape --- webif/lib/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webif/lib/utils b/webif/lib/utils index 7eb71e4..c7dbd84 100644 --- a/webif/lib/utils +++ b/webif/lib/utils @@ -102,7 +102,7 @@ proc ::js::_unescape {str} { proc ::js::escape {str} { return [subst -nobackslashes -novariables \ - [regsub -all -- {[^A-Za-z0-9@*_+-./]+} $str \ + [regsub -all -- {[^A-Za-z0-9@*_+./-]+} $str \ {[::js::_escape {&}]}]] }