Changeset 13461


Ignore:
Timestamp:
2006-12-08T12:06:47+13:00 (17 years ago)
Author:
kjdon
Message:

added some comments for decode_cgi_arg method

File:
1 edited

Legend:

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

    r13456 r13461  
    270270// convert %xx and + to their appropriate equivalents
    271271// IE 6.0 and later use "%u" followed by 4 hex digits... MS IIS extension!
     272// NOTE: this method is crap. It assumes the input encoding is utf-8. If it
     273// actually was, then this returns utf-8, and needs to_uni on the
     274// result to get it back to unicode. If the encoding wasn't utf-8, then the
     275// output may be crap. Seems to work for 8 bit encodings.
     276// Really, this should be given the encoding, and should always return unicode.
    272277void decode_cgi_arg (text_t &argstr) {
    273278  text_t::iterator in = argstr.begin();
     
    320325  // remove the excess characters
    321326  argstr.erase (out, end);
     327 
    322328}
    323329
Note: See TracChangeset for help on using the changeset viewer.