Changeset 935

Show
Ignore:
Timestamp:
17.02.2000 15:34:09 (20 years ago)
Author:
sjboddie
Message:

made compressedoptions macro dm_safe - added SCRIPT_NAME to log string

Files:
1 modified

Legend:

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

    r904 r935  
    2828/* 
    2929   $Log$ 
     30   Revision 1.46  2000/02/17 02:34:09  sjboddie 
     31   made compressedoptions macro dm_safe - added SCRIPT_NAME to log string 
     32 
    3033   Revision 1.45  2000/02/03 01:48:52  sjboddie 
    3134   fixed potential bug in ccscols stuff 
     
    739742   
    740743  text_t host = gsdl_getenv ("REMOTE_HOST", fcgienv); 
     744  text_t script_name = gsdl_getenv ("SCRIPT_NAME", fcgienv); 
    741745  if (host.empty()) host = gsdl_getenv ("REMOTE_ADDR", fcgienv); 
    742746  text_t browser = gsdl_getenv ("HTTP_USER_AGENT", fcgienv); 
     
    758762  logfile = filename_cat (logfile, "usage.txt"); 
    759763 
    760   text_t logstr = host; 
     764  text_t logstr = script_name; 
     765  logstr += " " + host; 
    761766  logstr += " ["; 
    762767  logstr += ttime; 
     
    12231228  disp.setmacro ("httpprefix", "Global", configinfo.httpprefix); 
    12241229  text_t compressedoptions = get_compressed_arg(args, logout); 
    1225   disp.setmacro ("compressedoptions", "Global", compressedoptions); 
     1230  disp.setmacro ("compressedoptions", "Global", dm_safe(compressedoptions)); 
    12261231  // need a decoded version of compressedoptions for use within forms 
    12271232  // as browsers encode values from forms before sending to server 
    12281233  // (e.g. %25 becomes %2525) 
    12291234  decode_cgi_arg (compressedoptions); 
    1230   disp.setmacro ("decodedcompressedoptions", "Global", compressedoptions); 
     1235  disp.setmacro ("decodedcompressedoptions", "Global", dm_safe(compressedoptions)); 
    12311236 
    12321237  // set _cgiargX_ macros for each cgi argument 
     
    12461251             "Global", html_safe((*argshere).second.value)); 
    12471252    else  
    1248       disp.setmacro ("cgiarg" + (*argshere).first, "Global", (*argshere).second.value); 
     1253      disp.setmacro ("cgiarg" + (*argshere).first, "Global", dm_safe((*argshere).second.value)); 
    12491254    argshere ++; 
    12501255  }