Permalink
Browse files

lockdown: fix table access

  • Loading branch information...
1 parent feeb774 commit 361afee45e1a1b3f2c38d9801c24df36621daee4 @sargon committed Mar 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/lockdown/cache.lua
View
@@ -65,7 +65,7 @@ function getPathByHost(hostname,domain,path)
if cache.hosts[hostname]
and cache.hosts[hostname].paths[domain]
and cache.hosts[hostname].paths[domain][path] then
- return cache.hosts[hostname].domains[domain]
+ return cache.hosts[hostname].paths[domain][path]
end
return nil
end

0 comments on commit 361afee

Please sign in to comment.