The vocabulary node types checks in taxonomy.module are very vulnerable to having node types names as prefixes of other node type names %%%s%% as it is there with %%blog%% will match a lot more, then just this simple node type. I have a special blogmark type for example, which is found for %%blog%%.
Since the node types are stored in a comma separated list, the solution is to search for 'blog' or '%%,blog,%%' or 'blog,%%' or '%%,blog', that is matching only for that node type, or matching that node type in a list, or at the beginning of a list, or at the end of a list. It does not look elegant, but this is the solution for the format used.
This probably also applies to 4.5.0, the patch is against HEAD.
Comment | File | Size | Author |
---|---|---|---|
Drupal-fix-vocab-node-types.patch | 1.27 KB | Gábor Hojtsy | |
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedhttp://drupal.org/node/15690
Comment #2
Gábor HojtsyDuplicate of itself?
Comment #3
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedhttp://drupal.org/node/6847
Comment #4
Gábor HojtsyI see an alternate solution landed in HEAD. This still need to be fixed in 4.5.x then.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to DRUPAL-4-5.
Comment #6
(not verified) CreditAttribution: commented