summaryrefslogtreecommitdiffstats
path: root/loader/urlinstall.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-08-26 16:42:28 -0400
committerChris Lumens <clumens@redhat.com>2009-09-30 11:59:16 -0400
commit518d6ecbf8f07f0686bb04ee71e9f5363529d931 (patch)
treefff01101cccbf0d2c0e22302076e9973f3726b52 /loader/urlinstall.c
parent894b07c8a90003907447c24253828d2c1ea650d4 (diff)
downloadanaconda-518d6ecbf8f07f0686bb04ee71e9f5363529d931.tar.gz
anaconda-518d6ecbf8f07f0686bb04ee71e9f5363529d931.tar.xz
anaconda-518d6ecbf8f07f0686bb04ee71e9f5363529d931.zip
libcurl supports https in addition to http, so change our tests.
Diffstat (limited to 'loader/urlinstall.c')
-rw-r--r--loader/urlinstall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/urlinstall.c b/loader/urlinstall.c
index 466ad0509..61e7e0cdb 100644
--- a/loader/urlinstall.c
+++ b/loader/urlinstall.c
@@ -409,7 +409,7 @@ void setKickstartUrl(struct loaderData_s * loaderData, int argc,
}
/* determine install type */
- if (strstr(url, "http://") || strstr(url, "ftp://"))
+ if (!strncmp(url, "http", 4) || !strncmp(url, "ftp://", 6))
loaderData->method = METHOD_URL;
else {
newtWinMessage(_("Kickstart Error"), _("OK"),