1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Fixes wrong behaviour of Password Manager when saving entries

- fixed manipulating with usernames/passwords containing
   characters needed to be percent encoded
 - also updated all .ts files
 - compiled all translations into .qm files, so you can download
   latest translation for your language :-)
This commit is contained in:
nowrep 2011-11-26 16:54:44 +01:00
parent 533f01fd32
commit c41ba1913f
11 changed files with 14 additions and 13 deletions

Binary file not shown.

View File

@ -259,12 +259,12 @@ QString AutoFillModel::getValueFromData(const QByteArray &data, QWebElement elem
QString value = element.evaluateJavaScript("this.value").toString();
if (value.isEmpty()) {
QueryItems queryItems = QUrl("http://a.b/?" + data).queryItems();
QueryItems queryItems = QUrl::fromEncoded("http://a.b/?" + data).queryItems();
for (int i = 0; i < queryItems.count(); i++) {
QueryItem item = queryItems.at(i);
if (item.first == name) {
value = item.second;
value = item.second.toAscii();
}
}
}
@ -274,7 +274,7 @@ QString AutoFillModel::getValueFromData(const QByteArray &data, QWebElement elem
bool AutoFillModel::dataContains(const QByteArray &data, const QString &attributeName)
{
QueryItems queryItems = QUrl("http://a.b/?" + data).queryItems();
QueryItems queryItems = QUrl::fromEncoded("http://a.b/?" + data).queryItems();
for (int i = 0; i < queryItems.count(); i++) {
QueryItem item = queryItems.at(i);

View File

@ -140,9 +140,9 @@ void AutoFillManager::editPass()
query.exec();
query.next();
QString data = query.value(0).toString();
QString oldPass = "=" + query.value(1).toString();
data.replace(oldPass, "=" + text);
QByteArray data = query.value(0).toByteArray();
QByteArray oldPass = "=" + QUrl::toPercentEncoding(query.value(1).toByteArray());
data.replace(oldPass, "=" + QUrl::toPercentEncoding(text.toAscii()));
query.prepare("UPDATE autofill SET data=?, password=? WHERE id=?");
query.bindValue(0, data);

View File

@ -26,6 +26,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QInputDialog>
#include <QUrl>
namespace Ui
{

View File

@ -4179,7 +4179,7 @@ Po přidání či odstranění cest k certifikátům je nutné k projevení změ
<translation>Zkusit znovu</translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>Vyberte soubor...</translation>
</message>

View File

@ -4178,7 +4178,7 @@ Nachdem Speicherpfade hinzugefügt oder gelöscht wurden, muss QupZilla neu gest
<translation>Erneut versuchen</translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>Datei wählen...</translation>
</message>

View File

@ -4175,7 +4175,7 @@ Después de añadir o eliminar rutas de certificados, es necesario reiniciar el
<translation>Volver a intentar</translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>Elegir archivo...</translation>
</message>

View File

@ -4179,7 +4179,7 @@ Dopo l&apos;aggiunta o la rimozione dei percorsi di certificazione, è necessari
<translation>Prova di nuovo</translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>Scegli il file...</translation>
</message>

View File

@ -4179,7 +4179,7 @@ Na het toevoegen of verwijderen van paden, is het noodzakelijk om de browser te
<translation>Probeer nogmaals</translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>Kies bestand...</translation>
</message>

View File

@ -4176,7 +4176,7 @@ Po pridaní či odobratí ciest k certifikátom je nutné reštartovať prehliad
<translation>Skúsiť znova</translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>Vybrať súbor...</translation>
</message>

View File

@ -4171,7 +4171,7 @@ After adding or removing certificate paths, it is neccessary to restart browser
<translation></translation>
</message>
<message>
<location filename="../src/webview/webpage.cpp" line="483"/>
<location filename="../src/webview/webpage.cpp" line="447"/>
<source>Choose file...</source>
<translation>...</translation>
</message>