Show
Ignore:
Timestamp:
14.07.2010 15:45:00 (9 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.

Files:
1 modified

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