Hi,

I would like to know if an update from CGILUA 5.1.1 to 5.1.4
would break any code.
I analyzed the diff (attached) and  there are too many differences that I cant
guarantee no problems.
Can anyone help me?

Thanks,
Pablo

====DIFF====

Only in 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua: 
authentication.lua
diff -bBT /home/pmusa/Desktop/cgi-5.1.1/src/cgilua/cgilua.lua 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua/cgilua.lua

4c4
<    -- @release $Id: cgilua.lua,v 1.70 2007/11/21 17:04:23 carregal Exp $
---
>    -- @release $Id: cgilua.lua,v 1.85 2009/06/28 22:42:34 tomas Exp $
17c17
<    local tinsert, tremove = table.insert, table.remove
---
>    local tinsert, tremove, concat = table.insert, table.remove, table.concat
23a24
>    local setfenv = setfenv
30c31
<    _COPYRIGHT = "Copyright (C) 2003-2007 Kepler Project"
---
>    _COPYRIGHT = "Copyright (C) 2003-2010 Kepler Project"
32c33
<    _VERSION = "CGILua 5.1.1"
---
>    _VERSION = "CGILua 5.1.4"
56c57
<        SAPI.Response.write (msg)
---
>            SAPI.Response.write ("<html><head><title>CGILua 
>Error</title></head><body>" .. msg .. "</body></html>")
73c74,76
<    header = SAPI.Response.header
---
>    function header(...)
>       return SAPI.Response.header(...)
>    end
114c117,119
<    servervariable = SAPI.Request.servervariable
---
>    function servervariable(...)
>       return SAPI.Request.servervariable(...)
>    end
138c143,144
<        SAPI.Response.write (unpack(args))
---
>            SAPI.Response.write (concat(args,"\t"))
>            SAPI.Response.write ("\n")
149c155,157
<    put = SAPI.Response.write
---
>    function put (...)
>       return SAPI.Response.write(...)
>    end
164a173
>                    if #results == 0 then results = { true } end
170a180,185
>    local function buildscriptenv()
>      local env = { print = _M.print, write = _M.put }
>      setmetatable(env, { __index = _G, __newindex = _G })
>      return env
>    end
>    
182a198,199
>        local env = buildscriptenv()
>        setfenv(f, env)
223c240
<    tmp_path = getenv("TEMP") or getenv ("TMP") or "/tmp"
---
>    tmp_path = _G.CGILUA_TMP or getenv("TEMP") or getenv ("TMP") or "/tmp"
262a280
>      env = env or buildscriptenv()
300a319
>                     local env = buildscriptenv()
302c321
<            lp.include (filename)
---
>                     lp.include (filename, env)
330c349
<            return urlpath .. script .. params
---
>                    return script .. params
332c351
<            return urlpath .. script_vdir .. script .. params
---
>                    return script_vdir .. script .. params
551a571,573
>            script_vpath, pdir, use_executable_name, urlpath, script_vdir, 
>script_pdir,
>              script_file, authentication, app_name = 
>                   nil, nil, nil, nil, nil, nil, nil, nil, nil
562c584,585
<        foreachi(_tmpfiles, function (i, v)
---
>        for i, v in ipairs(_tmpfiles) do
>          _tmpfiles[i] = nil
568c591
<        end)
---
>        end
574a598
>            SAPI = _G.SAPI
590c614
<        pcall (getparams)
---
>            if not pcall (getparams) then return nil end
diff -bBT /home/pmusa/Desktop/cgi-5.1.1/src/cgilua/cookies.lua 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua/cookies.lua

4c4
<    -- @release $Id: cookies.lua,v 1.7 2007/04/16 14:01:32 tomas Exp $
---
>    -- @release $Id: cookies.lua,v 1.8 2008/04/24 13:42:04 mascarenhas Exp $
13,14c13,21
<    local header, write = SAPI.Response.header, SAPI.Response.write
<    local servervariable = SAPI.Request.servervariable
---
>    local function header(...)
>       return SAPI.Response.header(...)
>    end
>    local function write(...)
>       return SAPI.Response.write(...)
>    end
>    local function servervariable(...)
>       return SAPI.Request.servervariable(...)
>    end
diff -bBT /home/pmusa/Desktop/cgi-5.1.1/src/cgilua/dispatcher.lua 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua/dispatcher.lua

2c2
<    -- @release $Id: dispatcher.lua,v 1.7 2007/11/16 21:30:24 carregal Exp $
---
>    -- @release $Id: dispatcher.lua,v 1.8 2007/12/07 18:49:49 carregal Exp $
9c9
<        local captures = string.gsub(pattern, "(/$[%w_-]+)", "/?([^/]*)")
---
>        local captures = string.gsub(pattern, "(/$[%w_-]+)", "/([^/]*)")
Only in 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua: 
loader.lua
diff -bBT /home/pmusa/Desktop/cgi-5.1.1/src/cgilua/lp.lua 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua/lp.lua
4c4
<    -- @release $Id: lp.lua,v 1.12 2007/04/16 14:01:32 tomas Exp $
---
>    -- @release $Id: lp.lua,v 1.15 2008/12/11 17:40:24 mascarenhas Exp $
8c8
<    local find, format, gsub, strsub = string.find, string.format, 
string.gsub, 
string.sub
---
>    local find, format, gsub, strsub, char = string.find, string.format, 
>string.gsub, string.sub, string.char
43a44
>            s = gsub(s, "^#![^\n]+\n", "")
115a117
>    local BOM = char(239) .. char(187) .. char(191)
121a124
>        if src:sub(1,3) == BOM then src = src:sub(4) end
Only in 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua: 
.lp.lua.swp
diff -bBT /home/pmusa/Desktop/cgi-5.1.1/src/cgilua/post.lua 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua/post.lua

17c17
<    -- @release $Id: post.lua,v 1.16 2007/11/12 16:34:27 carregal Exp $
---
>    -- @release $Id: post.lua,v 1.17 2008/04/03 21:55:28 mascarenhas Exp $
284c284
<        if strfind(contenttype, "x%-www%-form%-urlencoded") then
---
>        if strfind(contenttype, "x-www-form-urlencoded", 1, true) then
286c286
<        elseif strfind(contenttype, "multipart/form%-data") then
---
>        elseif strfind(contenttype, "multipart/form-data", 1, true) then
288c288
<        elseif strfind (contenttype, "application/xml") or strfind 
(contenttype, "text/xml") or strfind (contenttype, "text/plain") then
---
>        elseif strfind (contenttype, "application/xml", 1, true) or strfind 
>(contenttype, "text/xml", 1, true) or strfind (contenttype, "text/plain", 1, 
>true) then
diff -bBT /home/pmusa/Desktop/cgi-5.1.1/src/cgilua/urlcode.lua 
/home/pmusa/Desktop/cgilua-5.1.4-1.src.rock_FILES/cgilua-5.1.4/src/cgilua/urlcode.lua

4c4
<    -- @release $Id: urlcode.lua,v 1.8 2007/04/16 14:01:32 tomas Exp $
---
>    -- @release $Id: urlcode.lua,v 1.10 2008/01/21 16:11:32 carregal Exp $
7c7
<    local next, pairs, tonumber, type = next, pairs, tonumber, type
---
>    local ipairs, next, pairs, tonumber, type = ipairs, next, pairs, tonumber, 
>type
28c28
<        str = string.gsub (str, "([^%w ])",
---
>        str = string.gsub (str, "([^0-9a-zA-Z ])", -- locale independent
89c89,93
<      for key,val in pairs(args) do
---
>     for key, vals in pairs(args) do
>        if type(vals) ~= "table" then
>          vals = {vals}
>        end
>        for i,val in ipairs(vals) do
91a96
>      end



      
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to