On Tue, 15 Jul 2003 18:19:03 -0400, Glenn McCorkle wrote:

> On Tue, 15 Jul 2003 20:39:27 +0200, Michal H. Tyc wrote:

>> On Mon, 14 Jul 2003 21:55:33 -0400, Glenn McCorkle wrote:

<snip>

>>> IgnoreBaseHref must be disabled before attempting to reply to any
>>> message in the inbox and before attempting to modify any that are
>>> in the outbox.

>> If it breaks some Arachne functionality, maybe this fix should be
>> done in different way?

> I agree....So I will work on better fix.

Fixed it.
We may now leave it enabled while doing email. :)

IgnoreBaseHref will now only effect 'remote' URLs

--- in html.c ---
     case TAG_BASE: //<BASE>
//!!glennmcc: begin July 14, 2003
// added to optionally "ignore" <base href="> tag
// (defaults to No if "IgnoreBaseHref Yes" line is not in Arachne.cfg)
if(!http_parameters.ignorebasehref || !strncmpi(cache->URL,"file",4)){
//!!glennmcc: added July 15, 2003  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//do not ignore if URL is 'local'
//!!glennmcc: end

     if(getvar("HREF",&tagarg))
     {
      add2history(frame->cacheitem.URL);
      GLOBAL.nothot=1;

      strcpy(text,tagarg);
      entity2str(text);
      AnalyseURL(text,&url,IGNORE_PARENT_FRAME);

      //reset BASE url:
      if(!p->currentframe)
       memcpy(&baseURL,&url,sizeof(struct Url));

      url2str(&url,frame->cacheitem.URL);
      if(!p->currentframe)
      {
       SetInputAtom(&URLprompt,frame->cacheitem.URL);
       if(!p->rendering_target)
DrawTitle(0);
      }
     }
}//!!glennmcc: ending '}' of "IgnoreBaseHref"
_________________


-- 
 Glenn
 http://arachne.cz/
 http://www.delorie.com/listserv/mime/
 http://www.cisnet.com/glennmcc/
 http://www.cisnet.com/glennmcc/aqc/

Reply via email to