Skip to content

Commit

Permalink
Allow https in page redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
felipedaragon committed Apr 9, 2014
1 parent 5f34bd0 commit 5472932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sailor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ end
-- args: table, vars to be passed in url get style
function Page:redirect(route,args)
args = args or {}
if not route:match('^http://') then
if not route:match('^https?://') then
local get = ''
for k,v in pairs(args) do
get = get.."&"..k.."="..v
Expand Down

0 comments on commit 5472932

Please sign in to comment.