Changeset 1508 in ntrip


Ignore:
Timestamp:
Jan 19, 2009, 6:47:55 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r1504 r1508  
    300300  url.setHost(_casterHostComboBox->currentText());
    301301  url.setPort(_casterPortLineEdit->text().toInt());
    302   url.setUserName(_casterUserLineEdit->text());
    303   url.setPassword(_casterPasswordLineEdit->text());
     302  url.setUserName(QUrl::toPercentEncoding(_casterUserLineEdit->text()));
     303  url.setPassword(QUrl::toPercentEncoding(_casterPasswordLineEdit->text()));
    304304  addUrl(url);
    305305
     
    418418    QUrl url(casterUrlList[ii]);
    419419    if (url.host() == newHost) {
    420       _casterUserLineEdit->setText(url.userName());
    421       _casterPasswordLineEdit->setText(url.password());
     420      _casterUserLineEdit->setText(
     421                QUrl::fromPercentEncoding(url.userName().toAscii()));
     422      _casterPasswordLineEdit->setText(
     423                QUrl::fromPercentEncoding(url.password().toAscii()));
    422424      if (url.port() > 0) {
    423425        _casterPortLineEdit->setText(QString("%1").arg(url.port()));
Note: See TracChangeset for help on using the changeset viewer.