FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 06-16-2010, 06:51 AM
Ales Kozumplik
 
Default Check for proper Proxy URL in loader (#604126)

On 06/16/2010 02:53 AM, Brian C. Lane wrote:

Make sure the Proxy url starts with http or ftp://

Resolves: rhbz#604126
---
loader/urls.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/loader/urls.c b/loader/urls.c
index 701f1c5..dbf343a 100644
--- a/loader/urls.c
+++ b/loader/urls.c
@@ -341,6 +341,12 @@ int urlMainSetupPanel(struct loaderData_s *loaderData, struct iurlinfo * ui) {
ui->url = strdup(url);

if (enableProxy == '*') {
+ if (strncmp(proxy, "http", 4)&& strncmp(proxy, "ftp://", 6)) {
+ newtWinMessage(_("Error"), _("OK"),
+ _("Proxy must be either an ftp or http URL"));
+ continue;
+ }
+
loaderData->proxy = strdup(proxy);
loaderData->proxyUser = strdup(proxyUser);
loaderData->proxyPassword = strdup(proxyPassword);


Ack.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org