Branch: Tag:

1999-03-22

1999-03-22 18:45:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in get_atom_options().

Rev: lib/modules/Protocols.pmod/IMAP.pmod/parse_line.pike:1.15

326:    string option_start = buffer;       array options = do_parse_simple_list(max_depth - 1, ']'); +  +  if (strlen(buffer) && buffer[0] == ']') { +  buffer = buffer[1..]; +  } +     if (!options) {    res->options = ({ ([ "type":"atom", "atom":"" ]) });    return res;
334:    res->options = options;    res->raw = option_start[..sizeof(option_start) - sizeof(buffer) - 1];    +     if (!strlen(buffer) || (buffer[0] != '<'))    return res;