Fixed bug where admin could go into a redirect loop if SSL routing isn't enabled but SECURE_BASE_URL is set to a secure/different URL from BASE_URL
Fixed bug where admin could go into a redirect loop if SSL routing isn't enabled but SECURE_BASE_URL is set to a secure/different URL from BASE_URL

nailsapp/common,nailsapp/common,nailsapp/common