Ignore:
Timestamp:
2014-03-17T21:36:16+13:00 (10 years ago)
Author:
ak19
Message:

Fourth commit for security and safe cgiargs.

File:
1 edited

Legend:

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

    r28899 r28911  
    743743      << "<form name=\"QueryForm\" method=\"get\" action=\"_gwcgi_\">\n"
    744744      << "<input type=\"hidden\" name=\"a\" value=\"q\">\n"
    745           << "<input type=\"hidden\" name=\"site\" value=\"_cgiargsite_\"\n"
     745          << "<input type=\"hidden\" name=\"site\" value=\"_cgiargsiteAttrsafe_\"\n"
    746746      << "<input type=\"hidden\" name=\"e\" value=\"_compressedoptions_\">\n"
    747747      << "<input type=\"hidden\" name=\"ccp\" value=\"1\">\n"
     
    13901390    decode_cgi_arg (compressedoptions);
    13911391    if (args["w"] == "utf-8") { // if the encoding was utf-8, then compressed options was utf-8, and we need unicode.
    1392     // if encoding wasn't utf-8, then compressed opotions may be screwed up, but seems to work for 8 bit encodings?
     1392    // if encoding wasn't utf-8, then compressed options may be screwed up, but seems to work for 8 bit encodings?
    13931393      compressedoptions = to_uni(compressedoptions);
    13941394    }
Note: See TracChangeset for help on using the changeset viewer.