Branch: Tag:

2001-01-23

2001-01-23 03:28:50 by Martin Nilsson <mani@lysator.liu.se>

Added xor to permitted sexpr operations. Bugfix for setting arrays

Rev: server/modules/tags/rxmltags.pike:1.196

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version = "$Id: rxmltags.pike,v 1.195 2001/01/04 07:28:13 nilsson Exp $"; + constant cvs_version = "$Id: rxmltags.pike,v 1.196 2001/01/23 03:28:50 nilsson Exp $";   constant thread_safe = 1;   constant language = roxen->language;   
31:    return "modified";   }    - constant permitted = "123456789.xabcdefint\"XABCDEFlo<>=0-*+/%&|()"/""; + constant permitted = "123456789.xabcdefint\"XABCDEFlo<>=0-*+/%&|()^"/1;      string sexpr_eval(string what)   {
469:    array do_return(RequestID id) {    if (args->value) {    // Set an entity variable to a value. -  if(args->split) RXML.user_set_var(args->variable, args->value/args->split, args->scope); +  if(args->split) +  RXML.user_set_var(args->variable, args->value/args->split, args->scope); +  else    RXML.user_set_var(args->variable, args->value, args->scope);    return 0;    }
489:    return 0;    }    -  RXML.user_set_var(args->variable, content, args->scope); -  return 0; +  args->value=content; +  return do_return(id);    }    }   }