Changeset 7065 for trunk


Ignore:
Timestamp:
2004-03-16T19:19:19+13:00 (20 years ago)
Author:
sjboddie
Message:

Minor bug fix in two get_cookie functions in receptionist.cpp. There was
potential for these functions to go into an endless loop in some
situations.

File:
1 edited

Legend:

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

    r6479 r7065  
    625625
    626626  text_t cookiestring = gsdl_getenv ("HTTP_COOKIE", fcgienv);
    627    
     627
    628628  text_t::const_iterator end = cookiestring.end(); 
    629629  text_t::const_iterator here = findchar ((text_t::const_iterator)cookiestring.begin(), end, 'G');
     
    635635      return true;
    636636    }
    637     here = findchar ((text_t::const_iterator)cookiestring.begin(), end, 'G');
     637    here++;
     638    here = findchar (here, end, 'G');
    638639  }
    639640
     
    662663    while (here+9 < end) {
    663664      if (substr(here, here+8) == "GSDL_UID") return true;
    664       here = findchar ((text_t::const_iterator)cookiestring.begin(), end, 'G');
     665      here++;
     666      here = findchar (here, end, 'G');
    665667    }
    666668  }
Note: See TracChangeset for help on using the changeset viewer.