[Koha-bugs] [Bug 16031] sitemap.pl shouldn't append protocol to OPACBaseURL
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 9 21:08:13 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16031
M. Tompsett <mtompset at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #48893|0 |1
is obsolete| |
--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 48897
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48897&action=edit
[SIGNED-OFF] 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 <mtompset at hotmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list