Changeset 1988


Ignore:
Timestamp:
2001-02-15T16:59:37+13:00 (23 years ago)
Author:
kjm18
Message:

changed escapequotes() to escape /n & /r as well.

File:
1 edited

Legend:

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

    r1914 r1988  
    298298  text_t escquery = "";
    299299  while (here != end) {
    300     if (*here != '\'' && *here != '\"') escquery.push_back(*here);
    301     else {
     300    if (*here != '\'' && *here != '\"' && *here != '\n' && *here != '\r') escquery.push_back(*here);
     301    else if (*here == '\n' || *here == '\r') {
     302      escquery.push_back(' ');
     303    } else {
    302304      escquery +="\\\\";
    303305      escquery.push_back(*here);
Note: See TracChangeset for help on using the changeset viewer.