Changeset 1422


Ignore:
Timestamp:
2000-08-18T14:56:20+12:00 (24 years ago)
Author:
sjboddie
Message:

Fixed a bug preventing multiple hyphens from being escaped correctly
in the compressed options string. It's still pretty ugly stuff though.

File:
1 edited

Legend:

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

    r1285 r1422  
    322322      arg_ehere = getdelimitstr (arg_ehere, arg_eend, '-', argvalue);
    323323      // replace any '-' chars escaped with 'Z'
    324       if (*(arg_ehere-2) == 'Z') {
    325         argvalue.clear();
     324      bool first = true;
     325      while (*(arg_ehere-2) == 'Z') {
     326        if (first) argvalue.clear();
    326327        arg_ehere = (findchar (arg_ehere, arg_eend, '-')) + 1;
    327328        while (sav != (arg_ehere-1)) {
     
    329330          sav ++;
    330331        }
     332        first = false;
    331333      }
    332334
Note: See TracChangeset for help on using the changeset viewer.