diff options
author | Ray Strode <rstrode@redhat.com> | 2006-11-06 16:42:54 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2006-11-06 16:42:54 +0000 |
commit | 65c2b4aa37ea0b17b834cbad32103e61c7a0e43f (patch) | |
tree | c6553169b8b35369b6a221de6574b96d289ab4dd | |
parent | 2b2c0821053619399b11fd8edbaf3d85ad531289 (diff) |
add patch from Vincent Untz to not validate categories that start with X-
2006-11-06 Ray Strode <rstrode@redhat.com>
* src/validate.c: add patch from Vincent Untz to
not validate categories that start with X-
(gnome bug 343799)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/validate.c | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2006-11-06 Ray Strode <rstrode@redhat.com> + + * src/validate.c: add patch from Vincent Untz to + not validate categories that start with X- + (gnome bug 343799) + 2006-07-25 Ray Strode <rstrode@redhat.com> * src/egg*: remove from cvs diff --git a/src/validate.c b/src/validate.c index 9317974..6ee0038 100644 --- a/src/validate.c +++ b/src/validate.c @@ -202,6 +202,12 @@ validate_categories (const char *value, const char *key, const char *locale, con { int j = 0; + if (strncmp ("X-", vals[i], 2) == 0) + { + i++; + continue; + } + while (categories_keys[j]) { if (g_ascii_strcasecmp (vals[i], categories_keys[j]) == 0) |