https://bugzilla.wikimedia.org/show_bug.cgi?id=64274

Ori Livneh <o...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |o...@wikimedia.org
           Assignee|m...@uberbox.org            |yuvipa...@gmail.com

--- Comment #1 from Ori Livneh <o...@wikimedia.org> ---
I *think* it's
<https://github.com/wikimedia/operations-puppet/blob/production/modules/dynamicproxy/files/urlproxy.lua#L23>:

local captures = ngx.re.match(ngx.var.uri, "^/([^/]*)(/.*)?$")
-- ...
L31 then assigns captures[2] (which is nil when there is no trailing slash) to
rest, which fails to match against any of the patterns.

Maybe L31 should read:

local rest = captures[2] or '/'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to