From 81a357ed5e77d20c000a1a10b0478332259cab74 Mon Sep 17 00:00:00 2001 From: Emily O'Leary Date: Mon, 25 Mar 2013 01:52:10 -0400 Subject: [PATCH] Putting in functionality so that sites with the "Sometimes" SSL setting allow for users with plugins such as HTTPSEVERYWHERE who wish to use HTTPS to do so without having errors pop up. Specifically this references this issue: http://status.net/open-source/issues/3855#comment-48988. (Port detection test removed by MMN-o. Also switched order on the test for isHTTPS/SensitiveAction.) --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index bda78afe13..52de9ccef9 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1236,7 +1236,7 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad $r = Router::get(); $path = $r->build($action, $args, $params, $fragment); - $ssl = common_is_sensitive($action); + $ssl = StatusNet::isHTTPS() || common_is_sensitive($action); if (common_config('site','fancy')) { $url = common_path($path, $ssl, $addSession); -- 2.39.5