diff options
author | Miles Bader <miles@gnu.org> | 2006-09-18 14:16:07 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2006-09-18 14:16:07 +0000 |
commit | f316efd97866668388e0de6e2e68ff73f7a1cbb8 (patch) | |
tree | 762985af3e9160fd787f4bfb475542eeb79aa6e9 /lisp/url/url-methods.el | |
parent | e437f99a4c72c5459c86bb636f63ca61ad57762e (diff) | |
download | emacs-f316efd97866668388e0de6e2e68ff73f7a1cbb8.tar.gz |
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>
Diffstat (limited to 'lisp/url/url-methods.el')
-rw-r--r-- | lisp/url/url-methods.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/url/url-methods.el b/lisp/url/url-methods.el index 6854d62af03..55166ee46f4 100644 --- a/lisp/url/url-methods.el +++ b/lisp/url/url-methods.el @@ -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 |