Changeset 262 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
1999-06-09T10:03:43+12:00 (25 years ago)
Author:
sjboddie
Message:

query string is now made cgi safe before being added to compressed args

File:
1 edited

Legend:

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

    r155 r262  
    1212/*
    1313   $Log$
     14   Revision 1.4  1999/06/08 22:03:43  sjboddie
     15   query string is now made cgi safe before being added to compressed args
     16
    1417   Revision 1.3  1999/02/08 01:28:00  rjmcnab
    1518
     
    367370    if (argnameinfo->multiplechar) {
    368371      // multiple character argument
    369       compressed_args += args[argname];
     372
     373      // if this is the "q" argument we need to make sure it's cgi safe
     374      if (argname == "q") {
     375        text_t arg_q = args[argname];
     376        arg_q = cgi_safe (arg_q);
     377        compressed_args += arg_q;
     378      } else
     379        compressed_args += args[argname];
    370380      if (saveconfhere != saveconfend) compressed_args.push_back ('-');
    371381
Note: See TracChangeset for help on using the changeset viewer.