Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
332 B

  1. package URI::file::QNX;
  2. require URI::file::Unix;
  3. @ISA=qw(URI::file::Unix);
  4. use strict;
  5. sub extract_path
  6. {
  7. my($class, $path) = @_;
  8. # tidy path
  9. $path =~ s,(.)//+,$1/,g; # ^// is correct
  10. $path =~ s,(/\.)+/,/,g;
  11. $path = "./$path" if $path =~ m,^[^:/]+:,,; # look like "scheme:"
  12. $path;
  13. }
  14. 1;