Branch: Tag:

2002-07-17

2002-07-17 14:17:08 by Martin Stjernholm <mast@lysator.liu.se>

Fixed quoting bug for entities using the special syntax "&:foo;".

Rev: server/etc/modules/RXML.pmod/utils.pmod:1.31

7:   //!   //! Created 2000-01-21 by Martin Stjernholm   //! - //! $Id: utils.pmod,v 1.30 2002/07/16 09:24:11 mast Exp $ + //! $Id: utils.pmod,v 1.31 2002/07/17 14:17:08 mast Exp $      constant is_RXML_encodable = 1;   
186:    }    }    else -  if (entity[0] == ':') str = entity[1..]; +  if (entity[0] == ':') return ({"&", entity[1..], ";"});    else if (has_value (entity, ".")) {    p->drain_output();    mixed value = p->handle_var (
206:    RXML.Type type = p->type;    string entity = p->tag_name();    if (sizeof (entity) && entity[0] != '#') -  if (entity[0] == ':') str = entity[1..]; +  if (entity[0] == ':') return ({"&", entity[1..], ";"});    else if (has_value (entity, ".")) {    p->drain_output();    mixed value = p->handle_var (