Branch: Tag:

1997-05-25

1997-05-25 11:00:53 by Wilhelm Köhler <wk@cs.tu-berlin.de>

Applied patch by Wilhelm Köhler.
Now doesn't redirect past top-level directory.

Rev: server/modules/filesystems/filesystem.pike:1.14

4:   // It will be located somewhere in the name-space of the server.   // Also inherited by some of the other filesystems.    - string cvs_version= "$Id: filesystem.pike,v 1.13 1997/04/08 23:46:09 marcus Exp $"; + string cvs_version= "$Id: filesystem.pike,v 1.14 1997/05/25 11:00:53 grubba Exp $";      #include <module.h>   #include <roxen.h>
247:    default:    if(f[ -1 ] == '/') /* Trying to access file with '/' appended */    { +  /* Do not try redirect on top level directory */ +  if(sizeof(id->not_query) < 2) +  return 0;    redirects++;    return http_redirect(id->not_query[..sizeof(id->not_query)-2], id);    }