diff options
author | Francois Andriot <[email protected]> | 2012-10-21 19:27:55 +0200 |
---|---|---|
committer | Francois Andriot <[email protected]> | 2012-10-21 19:27:55 +0200 |
commit | eebed6b614c52895321754908c05b5082f531b85 (patch) | |
tree | 56bf0c5f54512c2fd8ed02cbe16d1da83b723461 /redhat/kdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch | |
parent | 59daf455b483742c6c47099652117074df37889a (diff) | |
download | tde-packaging-eebed6b614c52895321754908c05b5082f531b85.tar.gz tde-packaging-eebed6b614c52895321754908c05b5082f531b85.zip |
RHEL/Fedora/MGA/MDV/Suse: update main and libraries for TDE 3.5.13.1
Diffstat (limited to 'redhat/kdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch')
-rw-r--r-- | redhat/kdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/redhat/kdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch b/redhat/kdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch new file mode 100644 index 000000000..25d99c683 --- /dev/null +++ b/redhat/kdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch @@ -0,0 +1,41 @@ +--- kdepim-3.5.13.1/libkmime/kmime_util.cpp.quotes 2012-09-08 12:06:45.000000000 +0200 ++++ kdepim-3.5.13.1/libkmime/kmime_util.cpp 2012-09-25 18:49:54.806551812 +0200 +@@ -436,29 +436,25 @@ + + void removeQuots(TQCString &str) + { +- str.replace(TQRegExp("\\\""), "\""); +- str.replace(TQRegExp("\\\\"), "\\"); ++ // Removes any quote or backslash caracter ++ str.replace(TQRegExp("[\\\"]"), ""); + } + + + void removeQuots(TQString &str) + { +- str.replace(TQRegExp("\\\""), "\""); +- str.replace(TQRegExp("\\\\"), "\\"); ++ // Removes any quote or backslash caracter ++ str.replace(TQRegExp("[\\\"]"), ""); + } + + + void addQuotes(TQCString &str, bool forceQuotes) + { +- bool needsQuotes=false; +- if ( TQString( str ) .contains( TQRegExp( TQString( "\"|\\\\|=|\\]|\\[|:|;|,|\\.|,|@|<|>|\\)|\\(" ) ) ) ) +- needsQuotes = true; +- +- str.replace(TQRegExp("\\"), "\\\\"); +- str.replace(TQRegExp("\""), "\\\""); +- +- if (needsQuotes || forceQuotes) { +- str.insert(0,'\"'); ++ if ( forceQuotes || TQString(str).contains( TQRegExp( TQString( "\"|\\\\|=|\\]|\\[|:|;|,|\\.|,|@|<|>|\\)|\\(" ) ) ) ) { ++ // Adds a backslash in front of any existing quote or backslash caracter ++ str.replace(TQRegExp("([\\\"])"), "\\\\1"); ++ // Adds quote at beginning and end of thestring ++ str.insert(0,'"'); + str.append("\""); + } + } |