From e301cbd55e295b0361c1f33be75c9af0c9f58221 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 28 Sep 2005 14:13:38 +0000 Subject: [PATCH] all links are now explicitly "http:" unless explicitly set to "https:" git-svn-id: svn://svn.open-ils.org/ILS/trunk@1877 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/opac_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index a95a45c296..42e46948ee 100644 --- a/Open-ILS/web/opac/common/js/opac_utils.js +++ b/Open-ILS/web/opac/common/js/opac_utils.js @@ -123,9 +123,9 @@ function findBasePath() { function findBaseURL(ssl) { var path = findBasePath(); - var proto = location.protocol; - if(ssl) proto = "https:"; + var proto = (ssl) ? "https:" : "http:"; return proto + "//" + location.host + path; + dump( 'ssl: ' + ssl + 'proto ' + proto ); } function buildImageLink(name, ssl) { -- 2.43.2