[latex3-commits] [git/LaTeX3-latex3-l3build] quote-bslash: double backslashes when writing to curlopts file (fbb63ab)

David Carlisle d.p.carlisle at gmail.com
Thu Nov 25 21:38:30 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : quote-bslash
Link       : https://github.com/latex3/l3build/commit/fbb63ab389ec86a78cac486b07b805238ce7d55b

>---------------------------------------------------------------

commit fbb63ab389ec86a78cac486b07b805238ce7d55b
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Thu Nov 25 20:38:30 2021 +0000

    double backslashes when writing to curlopts file


>---------------------------------------------------------------

fbb63ab389ec86a78cac486b07b805238ce7d55b
 l3build-upload.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/l3build-upload.lua b/l3build-upload.lua
index be814ce..4b3aa7a 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -319,6 +319,7 @@ function ctan_single_field(fname,fvalue,max,desc,mandatory)
       if (max > 0 and len(vs) > max) then
         error("The field " .. fname .. " is longer than " .. max)
       end
+      vs = vs:gsub('\\','\\\\')
       vs = vs:gsub('"','\\"')
       vs = vs:gsub('`','\\`')
       vs = vs:gsub('\n','\\n')





More information about the latex3-commits mailing list.