Commit 646831df authored by philipjsg's avatar philipjsg

Make sure that the http_proxy environment variable starts with http://

If not, then ignore it's value.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@628 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f5e61f76
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment