We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

[Closed] Overide RSS generator tag

How Do I?

xcl's avatar
xcl
104 posts
3 years ago
xcl's avatar xcl

Currently EE sets the generator tag in the RSS feed.

<generator>
ExpressionEngine v6.0.6 https://expressionengine.com/expressionengine
</generator>

There seems to be no real reason for this and any value added to the template is completely ignored.

I would prefer not to have such a data disclosure.

Can this be given consideration that if it needs to be there, do not use the full version number and likewise, if a generator tag is set, not to just ignore and overwrite it?

       
Andy McCormick's avatar
Andy McCormick
183 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Sorry for the delayed response. I meant to come back to this and it just got lost in the shuffle. Have you looked at the template you are using to generate the RSS feed? I don’t see anywhere except in the default empty feed that the generator tag is automatically being inserted. The empty feed is only used when the template for the RSS feed generates an error. https://docs.expressionengine.com/latest/add-ons/rss.html#empty-feeds-and-errors

       
xcl's avatar
xcl
104 posts
3 years ago
xcl's avatar xcl

That does it. Certainly seems that happens when there is no feed. I was testing that with no entries enabled just to ensure it was working.

Have used the empty_feed as a fall back until live.

       
Andy McCormick's avatar
Andy McCormick
183 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Ok. yeah. the only way to override the generator tag is to edit the add-on directly in system/ee/ExpressionEngine/Addons/rss/mod.rss.php . It’s found in the _default_empty_feed function.

If you think this tag is just bad practice (I don’t like my stuff being fingerprinted either), then you can certainly open a feature request in GitHub.

thanks!

       
xcl's avatar
xcl
104 posts
3 years ago
xcl's avatar xcl

Done. Raised as #1139.

       
Andy McCormick's avatar
Andy McCormick
183 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Cool. I’m going to close this in favor of your Feature Request in GitHub.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.