diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-03-06 01:30:25 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2008-03-06 01:30:25 +0000 |
commit | 09fd5da8a1674059f8fa3f451b3fbec72f8cb113 (patch) | |
tree | fc398f431ec1f94ea959ccf5ef8e330422c7334a /common | |
parent | 029de70f067240226a64d14cf9c1586950061d59 (diff) | |
download | gdm-09fd5da8a1674059f8fa3f451b3fbec72f8cb113.tar.gz |
Don't allow empty strings for keys.
2008-03-05 William Jon McCann <jmccann@redhat.com>
* common/gdm-settings-desktop-backend.c:
Don't allow empty strings for keys.
svn path=/trunk/; revision=5935
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-settings-desktop-backend.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/gdm-settings-desktop-backend.c b/common/gdm-settings-desktop-backend.c index 2d8c0b4e..18416fb9 100644 --- a/common/gdm-settings-desktop-backend.c +++ b/common/gdm-settings-desktop-backend.c @@ -80,7 +80,12 @@ parse_key_string (const char *keystring, /*g_debug ("Attempting to parse key string: %s", keystring);*/ split1 = g_strsplit (keystring, "/", 2); - if (split1 == NULL || split1 [0] == NULL || split1 [1] == NULL) { + if (split1 == NULL + || split1 [0] == NULL + || split1 [1] == NULL + || split1 [0][0] == '\0' + || split1 [1][0] == '\0') { + g_warning ("GdmSettingsDesktopBackend: invalid key: %s", keystring); goto out; } |