Changeset 12446


Ignore:
Timestamp:
2006-08-15T14:37:36+12:00 (18 years ago)
Author:
kjdon
Message:

deleted the code for ifl=1 when there are no matching docs. now output the content type for the page, and carry on as if ifl wasn't set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/queryaction.cpp

    r12421 r12446  
    13951395    // location response (url may contain macros!!)
    13961396    textout << outconvert << disp << "Location: " << doc_url << "\n\n";
     1397    textout << flush;
     1398    return true;
    13971399      }
    13981400      // Ooops... there weren't any matching documents
    13991401      else {
    1400     // Surely there must be a better way to get the query URL without the ifl argument?
    1401     // This is not complete!
    1402     text_t query_url = "_gwcgi_";
    1403     query_url += "?e=" + args["e"];
    1404     query_url += "&amp;h=" + args["h"];
    1405     query_url += "&amp;q=" + args["q"];
    1406     query_url += "&amp;r=" + args["r"];
    1407     query_url += "&amp;t=" + args["t"];
    1408     query_url += "&amp;hs=" + args["hs"];
    1409 
    1410     textout << outconvert << disp << "Location: " << query_url << "\n\n";
     1402    // We'll just carry on as if ifl wasn't set. The only catch is that
     1403    // get_cgihead_info won't have done the right thing (because ifl was
     1404    // set), so we need to make sure the output is html
     1405    textout << "Content-type: text/html\n\n";
    14111406      }
    1412 
    1413       textout << flush;
    1414       return true;
    1415     }
    1416 
    1417     //return false;
     1407    }
     1408
    14181409    if (err != noError) {
    14191410      disp.setmacro("resultline", "query", "_textnodocs_");
Note: See TracChangeset for help on using the changeset viewer.