rollout to static pages now emulates an insecure connection
authorTimm S. Mueller <tmueller@neoscientists.org>
Sun, 11 Mar 2007 20:35:16 +0100
changeset 1509772192829c1
parent 149 8fc5dbd1eacb
child 151 e01bdf886128
rollout to static pages now emulates an insecure connection
cgi-bin/loona.lua
     1.1 --- a/cgi-bin/loona.lua	Sun Mar 11 20:19:10 2007 +0100
     1.2 +++ b/cgi-bin/loona.lua	Sun Mar 11 20:35:16 2007 +0100
     1.3 @@ -150,7 +150,7 @@
     1.4  			path = path and path .. "/" .. e.name or e.name
     1.5  			if not e.notvisible then
     1.6  				loona:dumphtml { requestpath = path, requestlang = lang,
     1.7 -					htmlext = ext }
     1.8 +					htmlext = ext, insecure = true }
     1.9  			end
    1.10  			return path
    1.11  		end)
    1.12 @@ -1399,7 +1399,7 @@
    1.13  		end
    1.14  	end
    1.15  	
    1.16 -	o.secure = o.request.Port == o.config.secureport
    1.17 +	o.secure = not o.insecure and (o.request.Port == o.config.secureport)
    1.18  	o.authuser = o.session and o.session.data.authuser
    1.19  	
    1.20  	if o.nologin or not o.authuser then