summaryrefslogtreecommitdiff
path: root/libav
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2002-05-29 21:18:06 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2002-05-29 21:18:06 +0000
commit3a2d04473d3be2864ea67f2bbda09733a3aa5827 (patch)
treef48324c7633c8dc7f8d737adbe059b0736f62893 /libav
parent5845431a860dc319d165c0ad9a794ddebc611d1f (diff)
Make sure that the http_proxy environment variable starts with http://
If not, then ignore it's value. Originally committed as revision 628 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav')
-rw-r--r--libav/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libav/http.c b/libav/http.c
index 43af02d3a9..fb839f6a67 100644
--- a/libav/http.c
+++ b/libav/http.c
@@ -65,7 +65,7 @@ static int http_open(URLContext *h, const char *uri, int flags)
h->priv_data = s;
proxy_path = getenv("http_proxy");
- use_proxy = (proxy_path != NULL) && !getenv("no_proxy");
+ use_proxy = (proxy_path != NULL) && !getenv("no_proxy") && (strncmp(proxy_path, "http://", 7) == 0);
/* fill the dest addr */
redo: