Branch: Tag:

1998-02-27

1998-02-27 05:19:22 by Per Hedbor <ph@opera.com>

NO_MODULE_SECURITY works again, </end> tags in graphics text optimized 10 times

Rev: server/base_server/configuration.pike:1.102
Rev: server/config_actions/resolv.pike:1.7
Rev: server/etc/include/config.h:1.11
Rev: server/modules/graphics/graphic_text.pike:1.107
Rev: server/modules/tags/htmlparse.pike:1.82

1: - constant cvs_version="$Id: graphic_text.pike,v 1.106 1998/02/22 20:10:15 neotron Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.107 1998/02/27 05:19:21 per Exp $";   constant thread_safe=1;      #include <module.h>
1145:   {    mapping f2 = copy_value(find);    foreach(glob("magic_*", indices(f2)), string q) m_delete(f2,q); -  if(!args_restored) restore_cached_args(); +  if(!args_restored)    array a = indices(cached_args);    array b = values(cached_args);    int i;    -  for(i=0; i<sizeof(a); i++) -  if(equal(f2, b[i])) -  return a[i]; -  +  for(i=0; i<sizeof(a); i++) if(equal(f2, b[i])) return a[i]; +  restore_cached_args(); +  for(i=0; i<sizeof(a); i++) if(equal(f2, b[i])) return a[i];    cached_args[number]=find;    remove_call_out(save_cached_args);    call_out(save_cached_args, 10);
1524:    FIX(alink, "#ff0000",alink);    FIX(vlink, "#551a8b",vlink);    } -  if(changed) return ({"<body "+make_args(args)+">"}); +  if(changed) return ({make_tag("body", args); })   }      
1551:    mapping defines)   {    array c = id->misc->colors; -  sscanf(tagname, "/%s", tagname); -  while(c && sizeof(c)) +  int i; +  tagname = tagname[1..]; +  +  for(i=0;i<sizeof(c);i++) +  if(c[-i-1][2]==tagname)    { -  if(c[-1][2]==tagname) -  { -  defines->fg = c[-1][0]; -  defines->bg = c[-1][1]; +  defines->fg = c[-i-1][0]; +  defines->bg = c[-i-1][1];    break;    } -  c = c[..sizeof(c)-2]; -  } +  +  c = c[..-i-2];    id->misc->colors = c;   }