Branch: Tag:

2001-06-28

2001-06-28 22:40:13 by Martin Nilsson <mani@lysator.liu.se>

Added all 'internal' entities to the indices function in the page scope. Fixes [bug 1812 (#1812)].

Rev: server/etc/modules/Roxen.pmod:1.100

1:   // This is a roxen pike module. Copyright © 1999 - 2000, Roxen IS.   // - // $Id: Roxen.pmod,v 1.99 2001/06/28 20:08:59 mast Exp $ + // $Id: Roxen.pmod,v 1.100 2001/06/28 22:40:13 nilsson Exp $      #include <roxen.h>   #include <config.h>
2780:       array(string) _indices(void|RXML.Context c) {    if(!c) return ({}); -  array ind=indices(c->misc->scope_page); +  array ind=indices(c->misc->scope_page) + +  ({ "pathinfo", "realfile", "virtroot", "virtfile", "path", "query", +  "url", "last-true", "language", "scope", "filesize", "self", +  "ssl-strength", "dir", "counter" });    foreach(indices(converter), string def)    if(c->misc[converter[def]]) ind+=({def});    return ind + ({"pathinfo"});