Branch: Tag:

2000-05-03

2000-05-03 08:52:15 by Martin Stjernholm <mast@lysator.liu.se>

A bit stricter checking: Don't allow unknown entities in a non-free_text
context.

Rev: server/etc/modules/RXML.pmod/module.pmod:1.89
Rev: server/etc/modules/RXML.pmod/utils.pmod:1.11

5:   //!   //! Created 2000-01-21 by Martin Stjernholm   //! - //! $Id: utils.pmod,v 1.10 2000/03/06 17:50:29 mast Exp $ + //! $Id: utils.pmod,v 1.11 2000/05/03 08:52:15 mast Exp $         array return_zero (mixed... ignored) {return 0;}
85:    return out && ({out});    }    } -  return p->type->free_text ? 0 : ({}); +  if (!p->type->free_text) +  RXML.parse_error ("Unknown entity &%s; not allowed in this context.\n", entity); +  return 0;   }      int(1..1)|string|array p_xml_compat_entity_cb (Parser.HTML p, string str)
99:    // in things like "nice><evil stuff='...'"?    RXML.t_text :    p->type); -  return p->type->free_text ? 0 : ({}); +  if (!p->type->free_text) +  RXML.parse_error ("Unknown entity &%s; not allowed in this context.\n", entity); +  return 0;   }