[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kabc/scripts
From: Volker Krause <vkrause () kde ! org>
Date: 2007-12-11 7:51:52
Message-ID: 1197359512.409819.26791.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 747156 by vkrause:
Correctly handle quotes in quoted names.
M +5 -3 addressee.src.cpp
--- branches/KDE/3.5/kdelibs/kabc/scripts/addressee.src.cpp #747155:747156
@@ -379,9 +379,11 @@
text = e;
else {
QRegExp needQuotes( "[^ 0-9A-Za-z\\x0080-\\xFFFF]" );
- if ( realName().find( needQuotes ) != -1 )
- text = "\"" + realName() + "\" <" + e + ">";
- else
+ if ( realName().find( needQuotes ) != -1 ) {
+ QString name = realName();
+ name.replace( "\"", "\\\"" );
+ text = "\"" + name + "\" <" + e + ">";
+ } else
text = realName() + " <" + e + ">";
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic