init III
This commit is contained in:
21
Perl OTRS/Kernel/cpan-lib/URI/file/QNX.pm
Normal file
21
Perl OTRS/Kernel/cpan-lib/URI/file/QNX.pm
Normal file
@@ -0,0 +1,21 @@
|
||||
package URI::file::QNX;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use parent 'URI::file::Unix';
|
||||
|
||||
our $VERSION = '1.71';
|
||||
$VERSION = eval $VERSION;
|
||||
|
||||
sub _file_extract_path
|
||||
{
|
||||
my($class, $path) = @_;
|
||||
# tidy path
|
||||
$path =~ s,(.)//+,$1/,g; # ^// is correct
|
||||
$path =~ s,(/\.)+/,/,g;
|
||||
$path = "./$path" if $path =~ m,^[^:/]+:,,; # look like "scheme:"
|
||||
$path;
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user