Commit f316efd9 authored by Miles Bader's avatar Miles Bader
Browse files

lisp/url/url-methods.el: Fix format error when http_proxy is empty string

2006-09-18  Michael Olson  <mwolson@gnu.org>

	* url-methods.el (url-scheme-register-proxy): Handle case where
	getenv returns an empty string for http_proxy.  This prevents an
	error when calling `format' later on.

--This line, and those below, will be ignored--
Files to commit:
   lisp/url/ChangeLog
   lisp/url/url-methods.el

This list might be incomplete or outdated if editing the log
message was not invoked from an up-to-date changes buffer!

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-441
Creator:  Michael Olson <mwolson@gnu.org>
parent e437f99a
2006-09-18 Michael Olson <mwolson@gnu.org>
* url-methods.el (url-scheme-register-proxy): Handle case where
getenv returns an empty string for http_proxy. This prevents an
error when calling `format' later on.
2006-08-31 Diane Murray <disumu@x3y2z1.net>
* url-parse.el (url-recreate-url-attributes): New function, code
......
......@@ -75,6 +75,11 @@
(cur-proxy (assoc scheme url-proxy-services))
(urlobj nil))
;; If env-proxy is an empty string, treat it as if it were nil
(when (and (stringp env-proxy)
(string= env-proxy ""))
(setq env-proxy nil))
;; Store any proxying information - this will not overwrite an old
;; entry, so that people can still set this information in their
;; .emacs file
......
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