aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/url/ChangeLog11
-rw-r--r--lisp/url/url-cookie.el21
2 files changed, 24 insertions, 8 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 8eb2cd8471b..e8848528e18 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,14 @@
12006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * url-cookie.el: Remove spurious * in docstrings.
4 (url-cookie-write-file): Don't use versioned backups.
5 (url-cookie-host-can-set-p): Remove unused var `tmp'.
6
72006-07-04 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
8
9 * url-cookie.el (url-cookie-save-interval): Move to url-cookie group.
10 (url-cookie-write-file): Reset url-cookies-changed-since-last-save.
11
12006-05-12 Reiner Steib <Reiner.Steib@gmx.de> 122006-05-12 Reiner Steib <Reiner.Steib@gmx.de>
2 13
3 * url-http.el (url-http-file-exists-p): Test if status is integer. 14 * url-http.el (url-http-file-exists-p): Test if status is integer.
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el
index 53ba75f4cbb..e74d4989117 100644
--- a/lisp/url/url-cookie.el
+++ b/lisp/url/url-cookie.el
@@ -88,18 +88,18 @@ A cookie vector object is a vector of 7 slots:
88(defvar url-cookie-storage nil "Where cookies are stored.") 88(defvar url-cookie-storage nil "Where cookies are stored.")
89(defvar url-cookie-secure-storage nil "Where secure cookies are stored.") 89(defvar url-cookie-secure-storage nil "Where secure cookies are stored.")
90(defcustom url-cookie-file nil 90(defcustom url-cookie-file nil
91 "*File where cookies are stored on disk." 91 "File where cookies are stored on disk."
92 :type '(choice (const :tag "Default" :value nil) file) 92 :type '(choice (const :tag "Default" :value nil) file)
93 :group 'url-file 93 :group 'url-file
94 :group 'url-cookie) 94 :group 'url-cookie)
95 95
96(defcustom url-cookie-confirmation nil 96(defcustom url-cookie-confirmation nil
97 "*If non-nil, confirmation by the user is required to accept HTTP cookies." 97 "If non-nil, confirmation by the user is required to accept HTTP cookies."
98 :type 'boolean 98 :type 'boolean
99 :group 'url-cookie) 99 :group 'url-cookie)
100 100
101(defcustom url-cookie-multiple-line nil 101(defcustom url-cookie-multiple-line nil
102 "*If nil, HTTP requests put all cookies for the server on one line. 102 "If nil, HTTP requests put all cookies for the server on one line.
103Some web servers, such as http://www.hotmail.com/, only accept cookies 103Some web servers, such as http://www.hotmail.com/, only accept cookies
104when they are on one line. This is broken behavior, but just try 104when they are on one line. This is broken behavior, but just try
105telling Microsoft that." 105telling Microsoft that."
@@ -168,7 +168,13 @@ telling Microsoft that."
168 (insert ")\n(setq url-cookie-secure-storage\n '") 168 (insert ")\n(setq url-cookie-secure-storage\n '")
169 (pp url-cookie-secure-storage (current-buffer)) 169 (pp url-cookie-secure-storage (current-buffer))
170 (insert ")\n") 170 (insert ")\n")
171 (insert " ;; Local Variables:\n"
172 ";; version-control: never\n"
173 ";; no-byte-compile: t\n"
174 ";; End:\n")
175 (set (make-local-variable 'version-control) t)
171 (write-file fname) 176 (write-file fname)
177 (setq url-cookies-changed-since-last-save nil)
172 (kill-buffer (current-buffer)))))) 178 (kill-buffer (current-buffer))))))
173 179
174(defun url-cookie-store (name value &optional expires domain localpart secure) 180(defun url-cookie-store (name value &optional expires domain localpart secure)
@@ -313,18 +319,17 @@ telling Microsoft that."
313'.'s in the domain name in order to set a cookie.") 319'.'s in the domain name in order to set a cookie.")
314 320
315(defcustom url-cookie-trusted-urls nil 321(defcustom url-cookie-trusted-urls nil
316 "*A list of regular expressions matching URLs to always accept cookies from." 322 "A list of regular expressions matching URLs to always accept cookies from."
317 :type '(repeat regexp) 323 :type '(repeat regexp)
318 :group 'url-cookie) 324 :group 'url-cookie)
319 325
320(defcustom url-cookie-untrusted-urls nil 326(defcustom url-cookie-untrusted-urls nil
321 "*A list of regular expressions matching URLs to never accept cookies from." 327 "A list of regular expressions matching URLs to never accept cookies from."
322 :type '(repeat regexp) 328 :type '(repeat regexp)
323 :group 'url-cookie) 329 :group 'url-cookie)
324 330
325(defun url-cookie-host-can-set-p (host domain) 331(defun url-cookie-host-can-set-p (host domain)
326 (let ((numdots 0) 332 (let ((numdots 0)
327 (tmp domain)
328 (last nil) 333 (last nil)
329 (case-fold-search t) 334 (case-fold-search t)
330 (mindots 3)) 335 (mindots 3))
@@ -444,7 +449,7 @@ telling Microsoft that."
444(defvar url-cookie-timer nil) 449(defvar url-cookie-timer nil)
445 450
446(defcustom url-cookie-save-interval 3600 451(defcustom url-cookie-save-interval 3600
447 "*The number of seconds between automatic saves of cookies. 452 "The number of seconds between automatic saves of cookies.
448Default is 1 hour. Note that if you change this variable outside of 453Default is 1 hour. Note that if you change this variable outside of
449the `customize' interface after `url-do-setup' has been run, you need 454the `customize' interface after `url-do-setup' has been run, you need
450to run the `url-cookie-setup-save-timer' function manually." 455to run the `url-cookie-setup-save-timer' function manually."
@@ -453,7 +458,7 @@ to run the `url-cookie-setup-save-timer' function manually."
453 (if (bound-and-true-p url-setup-done) 458 (if (bound-and-true-p url-setup-done)
454 (url-cookie-setup-save-timer))) 459 (url-cookie-setup-save-timer)))
455 :type 'integer 460 :type 'integer
456 :group 'url) 461 :group 'url-cookie)
457 462
458(defun url-cookie-setup-save-timer () 463(defun url-cookie-setup-save-timer ()
459 "Reset the cookie saver timer." 464 "Reset the cookie saver timer."