Ticket #334 (closed Bug report: fixed)

Opened 6 years ago

Last modified 6 years ago

BASE_NON_SSL_PATH problems when port other than 80

Reported by: tdb@… Owned by:
Priority: low Milestone: Not yet assigned to a Milestone
Component: Auth server, Other Version:
Keywords: Cc:

Description

Hi,

I am new to this so feel free to kick me if I am going about this in totally the wrong way.

I found a problem when trying to use  http://myhostname.eu:8080/ I could visit the main page and that was fine but then all the links on the page would be pointing to  http://myhostname.eu and not  http://myhostname.eu:8080

I have made the following changes to path_defines_url_content.php and found it now works regardless of the port used.

if ($_SERVERSERVER_PORT? != 80) {

define('BASE_NON_SSL_PATH', ' http://'.$_SERVER['SERVER_NAME'] . ':'.$_SERVERSERVER_PORT? . SYSTEM_PATH);

} else {

define('BASE_NON_SSL_PATH', ' http://'.$_SERVER['SERVER_NAME'] . SYSTEM_PATH);

}

The else statement has been included just for neatness.

Cheers,

Tim

Attachments

Change History

Changed 6 years ago by benoitg

  • status changed from new to closed
  • resolution set to fixed

Applied in [1240], thanks!

Add/Change #334 (BASE_NON_SSL_PATH problems when port other than 80)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.