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

Re: [BUG REPORT] WML 2.0.0, Linux 2.2.14



On Sun, Jun 18, 2000 at 06:26:23PM +0200, spacek@geocities.com wrote:
> 
> Problem Description:
> | Putting mailto:my@address.com as a url to navbar:button
> | will cause it to prepend urlbase, which is not desirable
> | for a mailto: tag.
> | 
> | I have checked the source and navbar does not include 
> | the url base either when the url starts with a slash or
> | if it starts with whatever:/ but mailto: usually does 
> | not have the slash.
> | 
> | Here's a (naive) fix:
> | 
> | --- navbar.wml.old      Sat May 13 10:24:48 2000
> | +++ navbar.wml  Sun Jun 18 12:25:34 2000
> | @@ -485,7 +485,7 @@
> |              $url = $NAVBAR{$name}->{uc($1)};
> |          }
> |          if ($url ne '') {
> | -            $url  = "$urlbase/$url" if ($urlbase ne '' and $url !~ m;^([.+\-\w]+:)?/;);
> | +            $url  = "$urlbase/$url" if ($urlbase ne '' and $url !~ m;^[.+\-\w]+:; and $url !~ m;^/;);
> |              $url  = &canonpath($url) if ($url !~ m;^[.+\-\w]+:/;);
> |          }

Hi Filip, you are right, and the last test must be changed too.
Thanks for your help.

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com