Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Nov 8, 2013
1 parent 87646bb commit e1ffb54
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ function say_html()
end

function whiteurl()
if WhiteCheck then
for _,rule in pairs(wturlrules) do
if ngxmatch(ngx.var.request_uri,rule,"isjo") then
return true
if WhiteCheck then
if wturlrules ~=nil then
for _,rule in pairs(wturlrules) do
if ngxmatch(ngx.var.request_uri,rule,"isjo") then
return true
end
end
end
end
Expand Down

0 comments on commit e1ffb54

Please sign in to comment.