Page 1 of 1

expose_s9y not used systemwide

Posted: Wed Mar 26, 2008 11:08 am
by jemm4jemm
There is and useful feature in serendipity_config.inc.php - through expose_s9y you can manage how explicitly Serendipity tells the world its version.

This works pretty fine, except in feeds accessed though /feeds/... urls. Therein in <generator> tag the blogengine version is still shown even if expose_s9y is set to false.

Re: expose_s9y not used systemwide

Posted: Wed Mar 26, 2008 11:19 am
by garvinhicking
Hi!

Yes, that is true, because this is a place where every blog software does expose itself. We do not want to strip this. If you absolutely must, you can create your own feed template.

But this is one of the places where you can pay your credits for a wonderful open source software. :-)

Regards,
Garvin

Re: expose_s9y not used systemwide

Posted: Wed Mar 26, 2008 11:54 am
by jemm4jemm
garvinhicking wrote: Yes, that is true, because this is a place where every blog software does expose itself. We do not want to strip this. If you absolutely must, you can create your own feed template.
No trouble in the promotion of the blogengine, but the issue is in version number.

So
<generator>Serendipity - 1.3 http://www.s9y.org/</generator>
should be
<generator>Serendipity - http://www.s9y.org/</generator>
if expose_s9y is set to false.

The same way as if expose_s9y is set to false then footer in login page is
Powered by Serendipity and PHP
instead of
Powered by Serendipity 1.3 and PHP 5.2.5

Re: expose_s9y not used systemwide

Posted: Wed Mar 26, 2008 12:47 pm
by garvinhicking
Hi!

Ah, of course, now I see. :-)

I've just committed a patch that will omit the version number when expose_s9y is disabled.

Regards,
Garvin

Re: expose_s9y not used systemwide

Posted: Wed Mar 26, 2008 1:01 pm
by jemm4jemm
garvinhicking wrote:I've just committed a patch that will omit the version number when expose_s9y is disabled.
Thanks. Also many security-conscious server-owners will be thankful :D

Re: expose_s9y not used systemwide

Posted: Fri Mar 28, 2008 11:25 am
by jemm4jemm
garvinhicking wrote:I've just committed a patch that will omit the version number when expose_s9y is disabled.
Can you do the same for emails sent from s9y.

With expose_s9y set as false then mail header should be:
X-Mailer: Serendipity
but is now:
X-Mailer: Serendipity/1.3

Re: expose_s9y not used systemwide

Posted: Fri Mar 28, 2008 12:36 pm
by garvinhicking
Hi!

Very good, thanks & fixed :)

Regards,
Garvin