[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Patch for Yahoo non-alphanumeric login (165308)
From:       Alex Dănilă <alex.danila () gmail ! com>
Date:       2012-02-04 12:20:12
Message-ID: 4F2D227C.8000507 () gmail ! com
[Download RAW message or body]

Hi,
Please accept this patch for bug 165308 in 4.7.4 and master, which fixes 
Yahoo login in cases where the user name or password contain 
non-alphanumeric symbols.

Thank you,
Alex

["kopete-yahoo.patch" (text/x-diff)]

Only in ../kdenetwork-4.7.4/: build
Only in ../kdenetwork-4.7.4/kopete: build
Only in ../kdenetwork-4.7.4/kopete: CMakeLists.txt.user
diff -aur kdenetwork-4.7.4/kopete/protocols/yahoo/libkyahoo/logintask.cpp \
                ../kdenetwork-4.7.4/kopete/protocols/yahoo/libkyahoo/logintask.cpp
--- kdenetwork-4.7.4/kopete/protocols/yahoo/libkyahoo/logintask.cpp	2011-12-02 \
                01:57:48.000000000 +0200
+++ ../kdenetwork-4.7.4/kopete/protocols/yahoo/libkyahoo/logintask.cpp	2012-02-01 \
01:24:12.763569524 +0200 @@ -213,8 +213,9 @@
 	kDebug(YAHOO_RAW_DEBUG) << "seed:" << seed;
 	m_stage1Data.clear();
 	/* construct a URL from the seed and request tokens */
-	QByteArray encodedUrl;
-	QString fullUrl = YahooTokenUrl.arg(sn, client()->password(), seed);
+	QString encodedPassword(QUrl::toPercentEncoding(client()->password()));
+	QString encodedUser(QUrl::toPercentEncoding(sn));
+	QString fullUrl = YahooTokenUrl.arg(encodedUser, encodedPassword, seed);
 	KUrl tokenUrl(fullUrl);
 	KIO::Job* job = KIO::get(tokenUrl, KIO::Reload, KIO::HideProgressInfo);
 	connect(job, SIGNAL(data(KIO::Job*, const QByteArray&)),
Only in ../kdenetwork-4.7.4/: ldd-all-lib.txt
Only in ../kdenetwork-4.7.4/: qtcreator-build



_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic