By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1235
Collapse All | Expand All

(-)kdepim-3.5.13.1/libkmime/kmime_util.cpp.quotes (-13 / +9 lines)
Lines 436-464 Link Here
436
436
437
void removeQuots(TQCString &str)
437
void removeQuots(TQCString &str)
438
{
438
{
439
  str.replace(TQRegExp("\\\""), "\"");
439
  // Removes any quote or backslash caracter
440
  str.replace(TQRegExp("\\\\"), "\\");
440
  str.replace(TQRegExp("[\\\"]"), "");
441
}
441
}
442
442
443
443
444
void removeQuots(TQString &str)
444
void removeQuots(TQString &str)
445
{
445
{
446
  str.replace(TQRegExp("\\\""), "\"");
446
  // Removes any quote or backslash caracter
447
  str.replace(TQRegExp("\\\\"), "\\");
447
  str.replace(TQRegExp("[\\\"]"), "");
448
}
448
}
449
449
450
450
451
void addQuotes(TQCString &str, bool forceQuotes)
451
void addQuotes(TQCString &str, bool forceQuotes)
452
{
452
{
453
  bool needsQuotes=false;
453
  if ( forceQuotes || TQString(str).contains( TQRegExp( TQString( "\"|\\\\|=|\\]|\\[|:|;|,|\\.|,|@|<|>|\\)|\\(" ) ) ) ) {
454
  if ( TQString( str ) .contains( TQRegExp( TQString( "\"|\\\\|=|\\]|\\[|:|;|,|\\.|,|@|<|>|\\)|\\(" ) ) ) )
454
    // Adds a backslash in front of any existing quote or backslash caracter
455
    needsQuotes = true;
455
    str.replace(TQRegExp("([\\\"])"), "\\\\1");
456
456
    // Adds quote at beginning and end of thestring
457
  str.replace(TQRegExp("\\"), "\\\\");
457
    str.insert(0,'"');
458
  str.replace(TQRegExp("\""), "\\\"");
459
460
  if (needsQuotes || forceQuotes) {
461
    str.insert(0,'\"');
462
    str.append("\"");
458
    str.append("\"");
463
  }
459
  }
464
}
460
}

Return to bug 1235