/[suikacvs]/test/comma/cgi-bin/comma-cvslog.cgi
Suika

Diff of /test/comma/cgi-bin/comma-cvslog.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by wakaba, Fri Mar 11 12:54:15 2005 UTC revision 1.3 by wakaba, Sat Mar 12 01:08:31 2005 UTC
# Line 86  sub canon_path ($) { Line 86  sub canon_path ($) {
86  sub remove_dot_segments ($) {  sub remove_dot_segments ($) {
87    my $input = shift;    my $input = shift;
88    my @output;    my @output;
89      $input =~ s/%2E/./g;  ## No semantical side effect since "." is unreserved
90    while (length $input) {    while (length $input) {
91      if ($input =~ s#^\.\.?/##g or $input =~ s#^/\.(?:/|(?![^/]))#/#g) {      if ($input =~ s#^\.\.?/##g or $input =~ s#^/\.(?:/|(?![^/]))#/#g) {
92        #        #

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24