From ef93a567ac6040524523f3d5d77b064732ef0609 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 9 Mar 2016 15:41:02 -0300 Subject: [PATCH] Bug 16031: sitemap.pl shouldn't append protocol to OPACBaseURL Since bug 5010 was pushed, OPACBaseURL already contains the protocol. The sitemap.pl script was written before this was pushed, and thus still concatenates http:// in front of OPACBaseURL. This patch removes this behaviour. To test: - Have OPACBaseURL set to (say) http://myopac.com - Run the sitemap.pl script without specifying the --url param => FAIL: Notice URLs look like http://http://myopac.com/bib... in the sitemap files. - Apply the patch - Run the sitemap.pl script without specifying the --url param => SUCCESS: Notice URLs look correctly like http://myopac.com/bib... - Sign off :-D Regards Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart --- misc/cronjobs/sitemap.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/misc/cronjobs/sitemap.pl b/misc/cronjobs/sitemap.pl index 0d61531..bc1bca7 100755 --- a/misc/cronjobs/sitemap.pl +++ b/misc/cronjobs/sitemap.pl @@ -49,7 +49,6 @@ unless ($url) { say "OPACBaseURL syspref isn't defined. You can use --url parameter."; exit; } - $url = 'http://' . $url; } $url =~ s/\/*$//g; -- 2.7.0