Changeset 614


Ignore:
Timestamp:
1999-09-22T09:41:17+12:00 (25 years ago)
Author:
sjboddie
Message:

fixed a couple of problems in what I committed last

File:
1 edited

Legend:

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

    r607 r614  
    2828/*
    2929   $Log$
     30   Revision 1.10  1999/09/21 21:41:17  sjboddie
     31   fixed a couple of problems in what I committed last
     32
    3033   Revision 1.9  1999/09/21 11:30:39  sjboddie
    3134   added ability to escape out '-' in saved args (currently
     
    148151   
    149152    // convert %xx and + to their appropriate equivalents
    150     if (key != "e") decode_cgi_arg (value);
     153    decode_cgi_arg (value);
    151154
    152155    value.setencoding(1); // other encoding
     
    168171    here ++;
    169172  }
     173  outtext = cgi_safe (outtext);
    170174  return outtext;
    171175}
     
    184188    ((c >= 'A') && (c <= 'Z')) ||
    185189    ((c >= '0') && (c <= '9')) ||
    186     (c == '+') || (c == '%')) {
     190    (c == '+') || (c == '%') || (c == '-')) {
    187191      // alphanumeric character
    188192      outtext.push_back(c);
     
    209213                       text_t::const_iterator last,
    210214                       text_t &argname) {
    211   text_t::const_iterator sav = first;
    212215  first = getdelimitstr (first, last, '-', argname);
    213216  return first;
Note: See TracChangeset for help on using the changeset viewer.