Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2010 at 09:17 UTC
Updated:
31 Jan 2013 at 17:26 UTC
I think that could be a good thing add the meta generator in the drupal core themes.
<meta name="generator" content="Drupal 7" />
We can indicate de major version, but not the subversion to prevent the easy reveal potential vulnerabilities in outdated sites.
Comments
Comment #1
damien tournoud commentedThat's already there:
Comment #2
oriol_e9gOps!! This is now added in Drupal 7
Comment #3
oriol_e9gComment #4
espirates commentedHow to remove the meta generator in Drupal 7 ? I don't want it and I suspect many won't either or should a module be made to remove it ?
Comment #5
mark trappThe following should remove the element:
Comment #6
klonosI have tried the code in #5 (minus the closing php tag and replaced the
mymodulepart with my theme's actual name) in my theme's template.php in latest D7 dev and it simply won't do magic any more :/I have also tried various other flavors suggested around d.o and elsewhere over the internet like using
&$head_elementsinstead of&$elementsandmeta_generatorinstead ofsystem_meta_generatorto no avail. Am I doing something wrong or did something perhaps change in core in the meantime?PS: sorry for hijacking this issue but I didn't want to file a duplicate/related. I will revert category and status back to the previous once I get a reply. Thanx beforehand.
Comment #7
klonos...the code in /includes/common.inc is:
So
&$elementsandsystem_meta_generatorshould be the ones to work (in theory at least).PS: the http://drupal.org part in the above code snippet should not be converted btw. There must be something wrong with the text filter.
Comment #8
mark trappPlease don't hijack issues like this. The correct course of action is to indeed create a new support request (or, alternatively, ask on Drupal Answers or utilize any of the other support options).
Comment #9
klonosMark, you are right but you need to chill. I've been around d.o long enough to know how things work, but as I said:
I didn't want to file a separate issue simply to be pointed back to #5.
I also said:
Happy now?: #1904556: Cannot disable the "Generator" meta tag anymore through mytheme_html_head_alter