Branch: Tag:

2000-11-06

2000-11-06 22:49:53 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug which caused infinite recursion when an old style tag or container
callback returned zero.

Rev: server/base_server/rxml.pike:1.258

5:   // New parser by Martin Stjernholm   // New RXML, scopes and entities by Martin Nilsson   // - // $Id: rxml.pike,v 1.257 2000/11/06 22:11:29 per Exp $ + // $Id: rxml.pike,v 1.258 2000/11/06 22:49:53 mast Exp $         inherit "rxmlhelp";
301:    id->misc->line = "0"; // No working system for this yet.       if (stringp (fn)) return ({fn}); -  if (!fn) return ({propagate_tag()}); +  if (!fn) { +  result_type = result_type (RXML.PNone); +  return ({propagate_tag()}); +  }       Stdio.File source_file;    mapping defines;
335:    if (args->noparse) result_type = result_type (RXML.PNone);    return ({result});    } -  else return ({propagate_tag()}); +  else { +  result_type = result_type (RXML.PNone); +  return ({propagate_tag()});    }    }    } -  + }      class GenericTag {    inherit RXML.Tag;