Changeset 39004


Ignore:
Timestamp:
2024-05-08T10:32:25+12:00 (2 weeks ago)
Author:
kjdon
Message:

the home page never got passed the e arg. If we use it on hte home page things go terribly wrong. not sure why. so lets check we are not the home page before reading in hte e cookie.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/receptionist.cpp

    r39000 r39004  
    599599
    600600  // get e cookie
    601   if (configinfo.usecookiesForE) get_named_cookie(args["e"], "GSDL_E", fcgienv);
     601  if (configinfo.usecookiesForE){
     602    // don't want this for home page
     603    if (!(args["a"] == "p" && args["p"] == "home")) {
     604      get_named_cookie(args["e"], "GSDL_E", fcgienv);
     605    }
     606  }
    602607  // expand the compressed argument (if there was one)
    603608  if (!expand_save_args (argsinfo, configinfo.saveconf, args, logout)) return false;
Note: See TracChangeset for help on using the changeset viewer.