diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-07-15 18:41:28 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-07-15 18:41:28 +0000 |
commit | 2da3445bc0f02d9ba60e358935b7bf86516180e5 (patch) | |
tree | a38d5b3ebcb9eaa5c10e39dca36d79f76e8cf49d | |
parent | ebe93b2671c8c7915b128b967edece12961fe9c4 (diff) | |
download | acf-openssl-2da3445bc0f02d9ba60e358935b7bf86516180e5.tar.bz2 acf-openssl-2da3445bc0f02d9ba60e358935b7bf86516180e5.tar.xz |
Fixed openssl character escapes.
git-svn-id: svn://svn.alpinelinux.org/acf/openssl/trunk@1306 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | openssl-model.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openssl-model.lua b/openssl-model.lua index bcaf477..fb28cb6 100644 --- a/openssl-model.lua +++ b/openssl-model.lua @@ -103,17 +103,15 @@ local create_subject_string = function(values, ignorevalues) end for name,value in pairs(values.value) do name = name:gsub(".*%.", "") -- remove the "0." from the front - value.value = value.value:gsub("[/=]", "\%1") -- escape characters if (short_names[name] or reverseshorts[name]) and value.value and value.value ~= "" then name = short_names[name] or name - outstr[#outstr + 1] = name .. "=" .. value.value + outstr[#outstr + 1] = name .. "=" .. value.value:gsub("[/=]", "\\%1") -- escape characters end end for name,value in pairs(values.value) do name = name:gsub(".*%.", "") -- remove the "0." from the front - value.value = value.value:gsub("[/=]", "\%1") -- escape characters if not reverseignore[name] and not short_names[name] and not reverseshorts[name] and value.value and value.value ~= "" then - outstr[#outstr + 1] = name .. "=" .. value.value + outstr[#outstr + 1] = name .. "=" .. value.value:gsub("[/=]", "\\%1") -- escape characters end end return "/"..table.concat(outstr, "/") |