[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
perl5
/
URI
/
file
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 Base.pm
1,501 B
SET
[ EDIT ]
|
[ DEL ]
📄 FAT.pm
523 B
SET
[ EDIT ]
|
[ DEL ]
📄 Mac.pm
2,511 B
SET
[ EDIT ]
|
[ DEL ]
📄 OS2.pm
587 B
SET
[ EDIT ]
|
[ DEL ]
📄 QNX.pm
363 B
SET
[ EDIT ]
|
[ DEL ]
📄 Unix.pm
1,048 B
SET
[ EDIT ]
|
[ DEL ]
📄 Win32.pm
1,783 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Unix.pm
package URI::file::Unix; use strict; use warnings; use parent 'URI::file::Base'; use URI::Escape qw(uri_unescape); our $VERSION = '1.73'; $VERSION = eval $VERSION; sub _file_extract_path { my($class, $path) = @_; # tidy path $path =~ s,//+,/,g; $path =~ s,(/\.)+/,/,g; $path = "./$path" if $path =~ m,^[^:/]+:,,; # look like "scheme:" return $path; } sub _file_is_absolute { my($class, $path) = @_; return $path =~ m,^/,; } sub file { my $class = shift; my $uri = shift; my @path; my $auth = $uri->authority; if (defined($auth)) { if (lc($auth) ne "localhost" && $auth ne "") { $auth = uri_unescape($auth); unless ($class->_file_is_localhost($auth)) { push(@path, "", "", $auth); } } } my @ps = $uri->path_segments; shift @ps if @path; push(@path, @ps); for (@path) { # Unix file/directory names are not allowed to contain '\0' or '/' return undef if /\0/; return undef if /\//; # should we really? } return join("/", @path); } 1;