mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-06 11:55:48 +00:00
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>
This commit is contained in:
parent
e437f99a4c
commit
f316efd978
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user