Change links to https:// in comment moderation mails

Creating and modifying plugins.
Post Reply
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Change links to https:// in comment moderation mails

Post by WebComPas »

Hallo!

My blog is normally accessible via HTTP, except the admin interface, which is only accessible via HTTPS. Therefor I need the moderation links within the notification mail to be formed with https:// like the following example:
I tried to find a corresponding possibility in the spamblock plugin but I couldn't find one.

Can anyone help me to solve this problem?

Regards,
Pascal
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change links to https:// in comment moderation mails

Post by garvinhicking »

Hi!

The comment notification mails use the HTTP prefix that is used by the client who submits the comment. Technically, I don't see a good way to intervent at that point.

So I would suggest you to not approve comments by email, but instead use the comment moderation panel and login to the backend to perform those actions, if you feel they are too sensitive.

The server name of the current s9y script would need to be set to HTTPS for the visiting client, which would pass him on to SSL as well, which I think would not be so good...

Regards
Garvin
# 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/
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Post by WebComPas »

OK, thanks for this information.

Regards,
Pascal
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
WebComPas
Regular
Posts: 101
Joined: Thu Nov 22, 2007 10:14 am
Contact:

Post by WebComPas »

Two days ago I found a solution for this problem, which doesn't require any change on the S9Y sources. I solved it with the Apache option RedirectMatch like it is described in my blog entry "Apache-Weiterleitung mittels RedirectMatch".
Interessantes aus den Themenbereichen Computer, Internet und Programmierung unter http://www.it-blog.net
Post Reply