Atom feed self URL will link to http on https webpages

Found a bug? Tell us!!
Post Reply
hanno
Regular
Posts: 72
Joined: Fri May 20, 2005 8:04 am
Contact:

Atom feed self URL will link to http on https webpages

Post by hanno »

Serendipity atom feeds contain a link to themselves (link rel="self"). These links are hardcoded as http URLs, even on https only webpages. This causes a warning in the W3C Feed validator.

I've attached a simplepatch that will - like in other similar places in s9y - check the $_SERVER variable for the used protocol and use that. Please apply.
Attachments
serendipity-2.0.1-fix-feed-https-url.txt
Patch to use correct http/https URL
(515 Bytes) Downloaded 330 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Atom feed self URL will link to http on https webpages

Post by garvinhicking »

Thanks a lot, merged to github!
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply