Changeset 294 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-06-26T13:08:36+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/cgiutils.cpp
r262 r294 12 12 /* 13 13 $Log$ 14 Revision 1.5 1999/06/26 01:08:36 rjmcnab 15 Added encoding and decoding of multibyte compresesd arguments. 16 14 17 Revision 1.4 1999/06/08 22:03:43 sjboddie 15 18 query string is now made cgi safe before being added to compressed args … … 295 298 296 299 } else { 300 297 301 // found the argument information 298 302 if (argnameinfo->multiplechar) { 299 303 arg_ehere = getdelimitstr (arg_ehere, arg_eend, '-', argvalue); 304 argvalue.setencoding(1); // other encoding 300 305 if (!argvalue.empty()) args.setdefaultarg (argname, argvalue); 301 306 } else { … … 337 342 cgiargsclass &args, 338 343 text_t &compressed_args, 344 outconvertclass &outconvert, 339 345 ostream &logout) { 340 346 outconvertclass text_t2ascii; … … 369 375 // found the argument information 370 376 if (argnameinfo->multiplechar) { 371 // multiple character argument 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]; 377 // multiple character argument -- make sure it is cgi safe 378 compressed_args += cgi_safe (outconvert.convert(args[argname])); 380 379 if (saveconfhere != saveconfend) compressed_args.push_back ('-'); 381 380 -
trunk/gsdl/src/recpt/cgiutils.h
r154 r294 69 69 cgiargsclass &args, 70 70 text_t &compressed_args, 71 outconvertclass &outconvert, 71 72 ostream &logout); 72 73
Note:
See TracChangeset
for help on using the changeset viewer.