[drupal(DRUPAL-4-5):dries] /modules taxonomy.module
User: dries Branch: DRUPAL-4-5 Date: Wed, 19 Jan 2005 20:35:27 +0000 Modified files: /modules taxonomy.module Log message: - Patch #15690 by Goba: 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. 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. Links: http://cvs.drupal.org/diff.php?path=drupal/modules/taxonomy.module&old=1.152...
participants (1)
-
drupal-devel@drupal.org