[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
[BUG REPORT] WML 2.0.0, Linux 2.2.14
- From: nospam@thanx
- Date: Sun, 18 Jun 2000 18:26:23 +0200 (MET DST)
BUG REPORT
Package: WML 2.0.0
Operating System: Linux 2.2.14
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]+:/;);
| }
|
|
| -Filip
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com