[PC-BSD Commits] r17453 - pcbsd/current/src-qt4/libpcbsd

svn at pcbsd.org svn at pcbsd.org
Tue Jun 26 08:15:55 PDT 2012


Author: kris
Date: 2012-06-26 15:15:55 +0000 (Tue, 26 Jun 2012)
New Revision: 17453

Modified:
   pcbsd/current/src-qt4/libpcbsd/utils.cpp
Log:

Fix getting the proxy url / port



Modified: pcbsd/current/src-qt4/libpcbsd/utils.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/utils.cpp	2012-06-26 15:12:34 UTC (rev 17452)
+++ pcbsd/current/src-qt4/libpcbsd/utils.cpp	2012-06-26 15:15:55 UTC (rev 17453)
@@ -267,7 +267,7 @@
 	QString val = getValFromSHFile("/etc/profile", "HTTP_PROXY");
 	if ( val.isEmpty() )
 	   return QString();
-	return val.section(":", 0, 1);
+	return val.section(":", 0, 0);
 }
 
 QString Utils::getProxyUser() {
@@ -295,7 +295,7 @@
 	QString val = getValFromSHFile("/etc/profile", "HTTP_PROXY");
 	if ( val.isEmpty() )
 	   return QString();
-	return val.section(":", 2, 2);
+	return val.section(":", 1, 1);
 }
 
 QString Utils::getMasterMirror() {



More information about the Commits mailing list