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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.