emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

url-cookie.el: Minor patch for handling trusted sites:


From: T. V. Raman
Subject: url-cookie.el: Minor patch for handling trusted sites:
Date: Fri, 27 Apr 2007 06:15:28 -0700


Here is a minor patch to url-cookie.el:

Description: Package url provides a user settable option
url-cookie-trusted-urls that specifies a list of trusted sites.

The function that is supposed to use this ---
url-cookie-handle-set-cookie  computes the "trustability" of a
set cookie action, but then omits to use what it computed.

This patch adds a check for that test.

diff url-cookie.el.orig  url-cookie.el
452c452,453
<      ((url-cookie-host-can-set-p (url-host url-current-object) domain)
---
>      ((or trusted
>           (url-cookie-host-can-set-p (url-host url-current-object) domain))
06:10:33 labrador url $ 


While in the neighborhood, could someone also look at function
url-cookie-host-can-set-p -- the test in that function for
checking whether a host is within a particular domain didn't make
much sense to me. 
 Thanks, 
 --Raman

-- 
Best Regards,
--raman

      
Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: address@hidden
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]