Skip to content
Browse files

Add a ' around proxy passwords

Thanks Lars!
  • Loading branch information...
1 parent 4023a66 commit c3ae3938889684add8570815f6d8bf0fb733026d @kmoore134 kmoore134 committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 src-qt4/libpcbsd/utils/utils.cpp
  2. +1 −1 src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp
View
2 src-qt4/libpcbsd/utils/utils.cpp
@@ -277,7 +277,7 @@ QString Utils::getProxyPass() {
QString val = getValFromSHFile("/etc/profile", "HTTP_PROXY_AUTH");
if ( val.isEmpty() )
return QString();
- return val.section(":", 3, 3);
+ return val.section(":", 3, 3).section("'", 1, 1);
}
QString Utils::getProxyType() {
View
2 src-qt4/pc-netmanager/src/NetworkManager/networkman.cpp
@@ -1038,7 +1038,7 @@ void NetworkMan::saveProxyConfig()
else
authLine="digest:*:";
authLine += lineProxyUser->text() + ":";
- authLine += lineProxyPass->text() + "";
+ authLine += "'" + lineProxyPass->text() + "'";
pcbsd::Utils::setProxyAuth(authLine);
}
QMessageBox::warning( this, tr("Proxy enabled"), tr("You may need to re-login for proxy settings to take effect."));

0 comments on commit c3ae393

Please sign in to comment.
Something went wrong with that request. Please try again.