diff options
Diffstat (limited to 'kde-base/kopete/files')
-rw-r--r-- | kde-base/kopete/files/digest-kopete-3.5.6-r2 | 6 | ||||
-rw-r--r-- | kde-base/kopete/files/kopete-3.5.6-utf8-fix.diff | 44 |
2 files changed, 50 insertions, 0 deletions
diff --git a/kde-base/kopete/files/digest-kopete-3.5.6-r2 b/kde-base/kopete/files/digest-kopete-3.5.6-r2 new file mode 100644 index 000000000000..83ac15f107eb --- /dev/null +++ b/kde-base/kopete/files/digest-kopete-3.5.6-r2 @@ -0,0 +1,6 @@ +MD5 07d313f91154d3c2f4620b921277fdc8 kdenetwork-3.5-patchset-01.tar.bz2 2986 +RMD160 288113734e7767a7526f4b9311c1985ac8aa91bf kdenetwork-3.5-patchset-01.tar.bz2 2986 +SHA256 0bbde1adaa4e8fff02c1f1fd6ceb66ec9af14dd19ff64567ab0fd03926d7d05b kdenetwork-3.5-patchset-01.tar.bz2 2986 +MD5 0f428cccc4ea16aa53c427530874c591 kdenetwork-3.5.6.tar.bz2 9245468 +RMD160 2f93badae14fab4d7911c74d2f427e85ca104827 kdenetwork-3.5.6.tar.bz2 9245468 +SHA256 786e6c25d5cba4ed1eeac947c5554d7fe57de593abf6551c58c178043b82475e kdenetwork-3.5.6.tar.bz2 9245468 diff --git a/kde-base/kopete/files/kopete-3.5.6-utf8-fix.diff b/kde-base/kopete/files/kopete-3.5.6-utf8-fix.diff new file mode 100644 index 000000000000..07c6cc307ed4 --- /dev/null +++ b/kde-base/kopete/files/kopete-3.5.6-utf8-fix.diff @@ -0,0 +1,44 @@ +--- branches/KDE/3.5/kdenetwork/kopete/libkopete/kopetepassword.cpp 2006/08/17 13:37:13 573903 ++++ branches/KDE/3.5/kdenetwork/kopete/libkopete/kopetepassword.cpp 2007/05/17 06:53:22 665563 +@@ -35,22 +35,7 @@ + #include <kmessagebox.h> + #include <kiconloader.h> + #include <kpassdlg.h> +- +-/** +- * Function for symmetrically (en/de)crypting strings for config file, +- * taken from KMail. +- * +- * @author Stefan Taferner <taferner@alpin.or.at> +- */ +-static QString cryptStr( const QString &aStr ) +-{ +- //Once Kopete depends on 3.2 just remove this function and use KStringHandler::obscure +- QString result; +- for ( uint i = 0; i < aStr.length(); i++ ) +- result += ( aStr[ i ].unicode() < 0x20) ? aStr[ i ] : QChar( 0x1001F - aStr[ i ].unicode() ); +- +- return result; +-} ++#include <kstringhandler.h> + + class Kopete::Password::Private + { +@@ -402,7 +387,7 @@ + if ( passwordCrypted.isNull() ) + d->passwordFromKConfig = QString::null; + else +- d->passwordFromKConfig = cryptStr( passwordCrypted ); ++ d->passwordFromKConfig = KStringHandler::obscure( passwordCrypted ); + + d->remembered = config->readBoolEntry( "RememberPassword", false ); + d->isWrong = config->readBoolEntry( "PasswordIsWrong", false ); +@@ -425,7 +410,7 @@ + config->setGroup( d->configGroup ); + + if ( d->remembered && !d->passwordFromKConfig.isNull() ) +- config->writeEntry( "Password", cryptStr( d->passwordFromKConfig ) ); ++ config->writeEntry( "Password", KStringHandler::obscure( d->passwordFromKConfig ) ); + else + config->deleteEntry( "Password" ); + |