Changeset 12446
- Timestamp:
- 2006-08-15T14:37:36+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/queryaction.cpp
r12421 r12446 1395 1395 // location response (url may contain macros!!) 1396 1396 textout << outconvert << disp << "Location: " << doc_url << "\n\n"; 1397 textout << flush; 1398 return true; 1397 1399 } 1398 1400 // Ooops... there weren't any matching documents 1399 1401 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 += "&h=" + args["h"]; 1405 query_url += "&q=" + args["q"]; 1406 query_url += "&r=" + args["r"]; 1407 query_url += "&t=" + args["t"]; 1408 query_url += "&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"; 1411 1406 } 1412 1413 textout << flush; 1414 return true; 1415 } 1416 1417 //return false; 1407 } 1408 1418 1409 if (err != noError) { 1419 1410 disp.setmacro("resultline", "query", "_textnodocs_");
Note:
See TracChangeset
for help on using the changeset viewer.