Merge pull request 'Ensure , is escaped in ::js::escape' (#45) from df/webif:df-listdirs-patch-v2 into master

Reviewed-on: hummypkg/webif#45
This commit is contained in:
af123 2021-04-10 08:52:31 +00:00
commit 67504198ec

View File

@ -102,7 +102,7 @@ proc ::js::_unescape {str} {
proc ::js::escape {str} { proc ::js::escape {str} {
return [subst -nobackslashes -novariables \ return [subst -nobackslashes -novariables \
[regsub -all -- {[^A-Za-z0-9@*_+-./]+} $str \ [regsub -all -- {[^A-Za-z0-9@*_+./-]+} $str \
{[::js::_escape {&}]}]] {[::js::_escape {&}]}]]
} }