+Wed Apr 27 11:49:41 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
+
+ * A comma in invite/ban string is invalid, check for it.
+ Affected file apps/silcd/server_util.c.
+
Mon Apr 25 14:25:24 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
* Moved silcer/, silc/, silcd/ and irssi/ to apps/. This
tmp = silc_argument_get_first_arg(args, &type, &len);
while (tmp) {
if (type == 1) {
- /* Check validity of the string */
+ /* Check validity of the string. Actually we should parse the
+ whole string and verify all components individually. */
if (!silc_utf8_valid(tmp, len) || !len) {
tmp = silc_argument_get_next_arg(args, &type, &len);
continue;
}
+ if (strchr(tmp, ',')) {
+ tmp = silc_argument_get_next_arg(args, &type, &len);
+ continue;
+ }
/* Check if the string is added already */
silc_hash_table_list(list, &htl);
tmp = silc_argument_get_first_arg(args, &type, &len);
while (tmp) {
if (type == 1) {
- /* Check validity of the string */
+ /* Check validity of the string. Actually we should parse the
+ whole string and verify all components individually. */
if (!silc_utf8_valid(tmp, len)) {
tmp = silc_argument_get_next_arg(args, &type, &len);
continue;
}
+ if (strchr(tmp, ',')) {
+ tmp = silc_argument_get_next_arg(args, &type, &len);
+ continue;
+ }
/* Delete from the list */
silc_hash_table_list(list, &htl);