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

List:       kde-bugs-dist
Subject:    [Bug 165308] kopete does not save passwords correctly if it contains symbols
From:       Alex Dănilă <nuorama () gmail ! com>
Date:       2012-01-31 23:29:39
Message-ID: E1RsN8t-0001En-PG () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=165308


Alex Dănilă <nuorama@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nuorama@gmail.com




--- Comment #6 from Alex Dănilă <nuorama gmail com>  2012-01-31 23:29:39 ---
Hi,
the password and user name should be encoded before sending out. There's one
function which needs to be modified like this:
void LoginTask::sendAuthSixteenStage1(const QString& sn, const QString& seed)
{
    const QString YahooTokenUrl =
"https://login.yahoo.com/config/pwtoken_get?src=ymsgr&ts=&login=%1&passwd=%2&chal=%3";
    kDebug(YAHOO_RAW_DEBUG) << "seed:" << seed;
    m_stage1Data.clear();
    /* construct a URL from the seed and request tokens */
    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&)),
            this, SLOT(handleAuthSixteenStage1Data(KIO::Job*, const
QByteArray&)));
    connect(job, SIGNAL(result(KJob*)),
            this, SLOT(handleAuthSixteenStage1Result(KJob*)));
}

I'll to attach a patch file.
Alex

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

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