Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Referrer.pm to set host to securehost if host is undefined #100

Open
photomedia opened this issue Jan 7, 2022 · 0 comments
Open

Comments

@photomedia
Copy link

Recent version of EPrints has introdiced a simplified means for configuration EPrints for HTTPS only:

https://wiki.eprints.org/w/Simplified_HTTPS_Configuration

This means that there could be issue with setting $self->{host} = $self->{session}->config( "host" ); if HTTPS only configuration is defined in the archive's cfg/cfg.d/10_core.pl. In that case, {host} is undefined, and only {securehost] is defined.

$self->{host} = $self->{session}->config( "host" );

Could this line be changed so that 'securehost' variable is used instead of 'host' when 'host' is undefined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant