[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
[BUG REPORT] WML 2.0.8, all
- From: nospam@thanx
- Date: Sun, 16 Jun 2002 00:26:38 +0200 (MET DST)
BUG REPORT
Package: WML 2.0.8
Operating System: all
Problem Description:
| BUG in wml-sup-path-20-Sep-2000:
|
| o canonpath('.///') returns '/' not './'
|
| see diff below !
|
| regards - Richard
|
| __FIX__:
|
| --- path.src.orig Sat Jun 15 23:57:26 2002
| +++ path.src Sun Jun 16 00:10:32 2002
| @@ -41,13 +41,13 @@
| sub canonpath {
| my ($path) = @_;
|
| - $pathL = '';
| + my $pathL = '';
| while ($path ne $pathL) {
| $pathL = $path;
| $path =~ s|//|/|g;
| $path =~ s|/\./|/|g;
| - $path =~ s|/\.$|/|g;
| - $path =~ s|^\./(.)|$1|g;
| + $path =~ s|/\.$|/|;
| + $path =~ s|^\./([^/])|$1|;
| $path =~ s|([^/.][^/.]*)/\.\.||;
| }
| return $path;
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com