Request meta name generator instead of Powered-By

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

Request meta name generator instead of Powered-By

Post by hanno »

Currently the templates shipped with serendipity have a meta tag like this to indicate the software used:
<meta name="Powered-By" content="Serendipity v.2.0-beta1" />

It seems that the meta tag with name "Powered-By" is a s9y invention. However, there is a standardized meta tag for that use: "generator". It is used by most other web CMS systems and blogs. It is approved by the W3C:
http://www.w3.org/wiki/HTML/Elements/meta

I propose changing all "Powered-By" metatags in themes to "generator" to make s9y more standards compliant.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by yellowled »

hanno wrote:It seems that the meta tag with name "Powered-By" is a s9y invention.
That is technically okay, though. As far as I know, the HTML spec only defines the struture of a meta element, it does not stipulate to use certain meta elements.
hanno wrote:However, there is a standardized meta tag for that use: "generator".
In fact, it would be possible to register extensions to the standard meta data names. “Powered-By” is indeed neither a standard meta data name nor a registered extension.
hanno wrote:I propose changing all "Powered-By" metatags in themes to "generator" to make s9y more standards compliant.
It's a tad harsh to speak of “standards compliant” here. Actually, the W3C validator does not consider “Powered-By” an error or even a warning. That being said, yes, “generator” is more common and kind of a standard for this. (2k11, for instance, uses it already.)

It should be noted that some CMS do not use “generator” deliberately because it offers a simple way to find out the engine (and usually version number) behind a website, which might be used to exploit security issues. Other than that I see no objection to changing it to “generator” for themes shipped with s9y. Might as well do that for additional themes on Spartacus.

YL
hanno
Regular
Posts: 72
Joined: Fri May 20, 2005 8:04 am
Contact:

Re: Request meta name generator instead of Powered-By

Post by hanno »

Yeah, maybe my wording was a bit overblown. Basically, the HTML meta tag allows any arbitrary kind of values, so you can invent as much of them as you like.

However, if there is already one standardized it makes sense to use it instead of inventing a new one.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by garvinhicking »

Good catch, thanks. Wasn't really aware of this. I just changed this for all internal (2.0/1.7) and external themes.
# 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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by yellowled »

Just our of curiosity (personally, I don't care), where is displaying the version number configured?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by garvinhicking »

We have a "expose_s9y" variable, somewhere buried in the global configuration ;)
# 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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by yellowled »

Seems like it's set in serendipity_config.inc.php, line 113-115.

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by garvinhicking »

Ah, ok. Then it's a serendipity_config_local.inc.php variable that would need to be set...

We once had our own s9y spider that checked blogs and analyze their versions, I think this is why we didn't want to put this variable configurable into the normal installer. Meanwhile I'm thinking, this might be nice to reveal to users...
# 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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Request meta name generator instead of Powered-By

Post by yellowled »

garvinhicking wrote:Ah, ok. Then it's a serendipity_config_local.inc.php variable that would need to be set...
That's what I found on a quick grep – it might be elsewhere as well. Not sure. However, I do think it would be good to have this as a config option as well.

YL
Post Reply