pike.git / lib / modules / Search.pmod / Queue.pmod / MySQL.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:66:    Standards.URI r = Standards.URI( (string)uri );    if( r->query ) r->query = normalize_query( r->query );    if(r->query && !strlen(r->query)) r->query = 0;       // Remove any trailing index filename       string rpath=reverse(r->path);    // FIXME: Make these configurable?    foreach( ({"index.xml", "index.html", "index.htm"}),    string index) -  if(search(rpath,reverse(index))==0) +  if(search(rpath,reverse(index))==0 && rpath[sizeof(index)]=='/')    rpath=rpath[sizeof(index)..];    r->path=reverse(rpath);       r->path = combine_path(r->path);       if( force || check_link(uri, allow, deny) )    {    if(has_uri(r))    {    // FIXME: