diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-10-02 21:37:25 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-10-02 21:37:25 +0200 |
commit | f3eb081fb57cc2327d9940901b1b6a28528d4f14 (patch) | |
tree | 40f7d83d9f740906b0d70410bd8a730d3cad54bb /redhat/tdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch | |
parent | f8537dae53861804e54d28b41fe48cf48824a06c (diff) | |
download | tde-packaging-f3eb081fb57cc2327d9940901b1b6a28528d4f14.tar.gz tde-packaging-f3eb081fb57cc2327d9940901b1b6a28528d4f14.zip |
RPM Packaging: cleanup tdepim
Diffstat (limited to 'redhat/tdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch')
-rw-r--r-- | redhat/tdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/redhat/tdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch b/redhat/tdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch deleted file mode 100644 index 25d99c683..000000000 --- a/redhat/tdepim/kdepim-3.5.13.1-kmime_utils_quotes.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- 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("\""); - } - } |