Fixed current_url HTTPS detection.