tag 563480 +patch
thanks
The flickr exporter in kipi-plugins 0.1.5-4 also fails when the
title has trailing whitespace.
The patch for 0.1.5-4 I have attached corrects the computation of
the api signature for the cases where accented letters or trailing
whitepace are present. I have tested it on my own system.
Kind regards,
Arnold Metselaar
diff -up kipi-plugins-0.1.5/kipi-plugins/flickrexport/flickrtalker.cpp kipi-plugins-0.1.5local/kipi-plugins/flickrexport/flickrtalker.cpp
--- kipi-plugins-0.1.5/kipi-plugins/flickrexport/flickrtalker.cpp 2008-03-16 14:16:30.000000000 +0100
+++ kipi-plugins-0.1.5local/kipi-plugins/flickrexport/flickrtalker.cpp 2010-01-03 10:45:11.000000000 +0100
@@ -71,13 +71,13 @@ namespace KIPIFlickrExportPlugin
for ( QStringList::Iterator it = headers.begin(); it != headers.end(); ++it ) {
QStringList str=QStringList::split("=",(*it));
- compressed.append(str[0].stripWhiteSpace()+str[1].stripWhiteSpace());
+ compressed.append(str[0].stripWhiteSpace()+str[1]);
}
compressed.sort();
QString merged=compressed.join("");
QString final = secret + merged;
- const char *test=final.ascii();
+ const QCString test=final.utf8();
KMD5 context (test);
//kdDebug()<< "Test Hex Digest output: " << context.hexDigest().data() << endl;
return context.hexDigest().data();