Ignore:
Timestamp:
2014-03-18T16:45:46+13:00 (10 years ago)
Author:
ak19
Message:

Commit 5 for security. Handles setmacro() occurrences in non action.cpp files. cl is safe from hacks now.

File:
1 edited

Legend:

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

    r28899 r28912  
    14781478  text_t compressedoptions = get_compressed_arg(args, logout);
    14791479  disp.setmacro ("compressedoptions", displayclass::defaultpackage, dm_safe(compressedoptions));
     1480  //disp.setmacro ("compressedoptionsUrlsafe", displayclass::defaultpackage, encodeForURL(dm_safe(compressedoptions))); // seems to be unnecessary after testing e=hack or e=hack<collect>... or e=...<collect>hack in a live server
     1481
    14801482  // need a decoded version of compressedoptions for use within forms
    14811483  // as browsers encode values from forms before sending to server
     
    16351637      if (!cinfo.httpdomain.empty()) httpcollection = "http://";
    16361638      httpcollection += cinfo.httpdomain + httpprefix + "/collect/"
    1637     + collection;
     1639    + encodeForURL(collection);
    16381640      disp.setmacro ("httpcollection", displayclass::defaultpackage,
    16391641             httpcollection);
Note: See TracChangeset for help on using the changeset viewer.