Changeset 22404 for main


Ignore:
Timestamp:
2010-07-14T15:45:00+12:00 (14 years ago)
Author:
mdewsnip
Message:

Added "newvalue.setencoding(1)" in two places in cgiutils::split_cgi_args(), otherwise multi-valued CGI arguments are not converted to Unicode in args_tounicode(). This is necessary if these values contain non-ASCII characters.

File:
1 edited

Legend:

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

    r21997 r22404  
    369369
    370370      newvalue += "," + encode_commas(value);
     371      newvalue.setencoding(1); // other encoding
    371372      args.setarg (key, newvalue, cgiarg_t::cgi_arg);
    372373    }
     
    378379      if (args.lookupcgiarg(key).source == cgiarg_t::cgi_arg) newvalue += ",";
    379380      newvalue += encode_commas(value);
     381      newvalue.setencoding(1); // other encoding
    380382      args.setarg (key, newvalue, cgiarg_t::cgi_arg);
    381383
Note: See TracChangeset for help on using the changeset viewer.