Changeset 2309 for trunk


Ignore:
Timestamp:
2001-04-12T11:05:52+12:00 (23 years ago)
Author:
sjboddie
Message:

Removed the "/cgi-bin" from local library urls as it was only there to
make us unix people feel better and caused unnecessary complications.

Location:
trunk/gsdl/src/w32server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r2293 r2309  
    735735  // do any url adjustments necessary
    736736  if (tailstr.empty() || tailstr == "/") {
    737     tailstr = "/cgi-bin/gw";
     737    tailstr = "/gw";
    738738  }
    739739
     
    743743  // test to see if this is a library request or a local
    744744  // file request
    745   if ((tailstr == "/cgi-bin/gw") ||
    746       ((tailstr.size() > 11) &&
    747        (substr(begin, begin+11) == "/cgi-bin/gw"))) {
     745  if ((tailstr == "/gw") ||
     746      ((tailstr.size() > 3) && (substr(begin, begin+4) == "/gw?"))) {
    748747
    749748    // library request
    750749   
    751750    // argstr is the bit after the '?'
    752     if (tailstr != "/cgi-bin/gw") {
    753       argstr = substr(begin+12, end);
     751    if (tailstr != "/gw") {
     752      argstr = substr(begin+4, end);
    754753    }
    755754
  • trunk/gsdl/src/w32server/settings.cpp

    r2286 r2309  
    363363 
    364364  // library settings
    365   gsdl_enterlib = "/cgi-bin/gw";
     365  gsdl_enterlib = "/gw";
    366366  gsdl_gsdlhome = data_location;
    367367  gsdl_gdbmhome = data_location;
Note: See TracChangeset for help on using the changeset viewer.