From fe65447e5bd8c1f14767c2d2d33ae8fb9e8dfc79 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 2 Jun 2008 08:13:34 -0500 Subject: [PATCH] OPACBaseURL - do not tack on :443 if using SSL Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 6545681a1a..4b21243058 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -319,7 +319,7 @@ sub get_template_and_user { AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), OPACBaseURL=> ($in->{'query'}->https() ? "https://" : "http://") . $ENV{'SERVER_NAME'} . - ($ENV{'SERVER_PORT'} eq "80" ? '' : ":$ENV{'SERVER_PORT'}"), + ($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" : "80") ? '' : ":$ENV{'SERVER_PORT'}"), ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); -- 2.39.5