Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
CGI /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
Dump.t
221
B
-r--r--r--
2014-12-27 11:49
apache.t
164
B
-r--r--r--
2014-12-27 11:49
autoescape.t
6.13
KB
-r--r--r--
2014-12-27 11:49
can.t
112
B
-r--r--r--
2014-12-27 11:49
carp.t
11.04
KB
-r--r--r--
2014-12-27 11:49
charset.t
722
B
-r--r--r--
2014-12-27 11:49
checkbox_group.t
992
B
-r--r--r--
2014-12-27 11:49
cookie.t
15.64
KB
-r--r--r--
2014-12-27 11:49
delete.t
2.08
KB
-r--r--r--
2014-12-27 11:49
end_form.t
188
B
-r--r--r--
2014-12-27 11:49
form.t
8.83
KB
-r--r--r--
2014-12-27 11:49
function.t
4.79
KB
-r--r--r--
2014-12-27 11:49
headers.t
1.94
KB
-r--r--r--
2014-12-27 11:49
hidden.t
2.14
KB
-r--r--r--
2014-12-27 11:49
html.t
4.75
KB
-r--r--r--
2014-12-27 11:49
http.t
1.44
KB
-r--r--r--
2014-12-27 11:49
init.t
227
B
-r--r--r--
2014-12-27 11:49
init_test.txt
12
B
-r--r--r--
2014-12-27 11:49
multipart_init.t
741
B
-r--r--r--
2014-12-27 11:49
no_tabindex.t
4.08
KB
-r--r--r--
2014-12-27 11:49
param_fetch.t
838
B
-r--r--r--
2014-12-27 11:49
popup_menu.t
627
B
-r--r--r--
2014-12-27 11:49
pretty.t
2.12
KB
-r--r--r--
2014-12-27 11:49
push.t
2.04
KB
-r--r--r--
2014-12-27 11:49
query_string.t
308
B
-r--r--r--
2014-12-27 11:49
request.t
4.02
KB
-r--r--r--
2014-12-27 11:49
rt-52469.t
184
B
-r--r--r--
2014-12-27 11:49
save_read_roundtrip.t
583
B
-r--r--r--
2014-12-27 11:49
start_end_asterisk.t
2.86
KB
-r--r--r--
2014-12-27 11:49
start_end_end.t
2.91
KB
-r--r--r--
2014-12-27 11:49
start_end_start.t
2.94
KB
-r--r--r--
2014-12-27 11:49
switch.t
164
B
-r--r--r--
2014-12-27 11:49
tmpdir.t
1.25
KB
-r--r--r--
2014-12-27 11:49
unescapeHTML.t
875
B
-r--r--r--
2014-12-27 11:49
upload.t
4.69
KB
-r--r--r--
2014-12-27 11:49
uploadInfo.t
2.52
KB
-r--r--r--
2014-12-27 11:49
upload_post_text.txt
3.21
KB
-r--r--r--
2014-12-27 11:49
url.t
3.71
KB
-r--r--r--
2014-12-27 11:49
user_agent.t
362
B
-r--r--r--
2014-12-27 11:49
utf8.t
721
B
-r--r--r--
2014-12-27 11:49
util-58.t
1.03
KB
-r--r--r--
2014-12-27 11:49
util.t
1.22
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
use strict; use warnings; use Test::More; use CGI ':all'; $ENV{HTTP_X_FORWARDED_HOST} = 'proxy:8484'; $ENV{SERVER_PROTOCOL} = 'HTTP/1.0'; $ENV{SERVER_PORT} = 8080; $ENV{SERVER_NAME} = 'the.good.ship.lollypop.com'; is virtual_port() => 8484, 'virtual_port()'; is server_port() => 8080, 'server_port()'; is url() => 'http://proxy:8484', 'url()'; # let's see if we do the defaults right $ENV{HTTP_X_FORWARDED_HOST} = 'proxy:80'; is url() => 'http://proxy', 'url() with default port'; subtest 'rewrite_interactions' => sub { # Reference: RT#45019 local $ENV{HTTP_X_FORWARDED_HOST} = undef; local $ENV{SERVER_PROTOCOL} = undef; local $ENV{SERVER_PORT} = undef; local $ENV{SERVER_NAME} = undef; # These two are always set local $ENV{'SCRIPT_NAME'} = '/real/cgi-bin/dispatch.cgi'; local $ENV{'SCRIPT_FILENAME'} = '/home/mark/real/path/cgi-bin/dispatch.cgi'; # These two are added by mod_rewrite Ref: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html local $ENV{'SCRIPT_URL'} = '/real/path/info'; local $ENV{'SCRIPT_URI'} = 'http://example.com/real/path/info'; local $ENV{'PATH_INFO'} = '/path/info'; local $ENV{'REQUEST_URI'} = '/real/path/info'; local $ENV{'HTTP_HOST'} = 'example.com'; my $q = CGI->new; is( $q->url( -absolute => 1, -query => 1, -path_info => 1 ), '/real/path/info', '$q->url( -absolute => 1, -query => 1, -path_info => 1 ) should return complete path, even when mod_rewrite is detected.' ); is( $q->url(), 'http://example.com/real', '$q->url(), with rewriting detected' ); is( $q->url(-full=>1), 'http://example.com/real', '$q->url(-full=>1), with rewriting detected' ); is( $q->url(-path=>1), 'http://example.com/real/path/info', '$q->url(-path=>1), with rewriting detected' ); is( $q->url(-path=>0), 'http://example.com/real', '$q->url(-path=>0), with rewriting detected' ); is( $q->url(-full=>1,-path=>1), 'http://example.com/real/path/info', '$q->url(-full=>1,-path=>1), with rewriting detected' ); is( $q->url(-rewrite=>1,-path=>0), 'http://example.com/real', '$q->url(-rewrite=>1,-path=>0), with rewriting detected' ); is( $q->url(-rewrite=>1), 'http://example.com/real', '$q->url(-rewrite=>1), with rewriting detected' ); is( $q->url(-rewrite=>0), 'http://example.com/real/cgi-bin/dispatch.cgi', '$q->url(-rewrite=>0), with rewriting detected' ); is( $q->url(-rewrite=>0,-path=>1), 'http://example.com/real/cgi-bin/dispatch.cgi/path/info', '$q->url(-rewrite=>0,-path=>1), with rewriting detected' ); is( $q->url(-rewrite=>1,-path=>1), 'http://example.com/real/path/info', '$q->url(-rewrite=>1,-path=>1), with rewriting detected' ); is( $q->url(-rewrite=>0,-path=>0), 'http://example.com/real/cgi-bin/dispatch.cgi', '$q->url(-rewrite=>0,-path=>1), with rewriting detected' ); }; subtest 'RT#58377: + in PATH_INFO' => sub { local $ENV{PATH_INFO} = '/hello+world'; local $ENV{HTTP_X_FORWARDED_HOST} = undef; local $ENV{'HTTP_HOST'} = 'example.com'; local $ENV{'SCRIPT_NAME'} = '/script/plus+name.cgi'; local $ENV{'SCRIPT_FILENAME'} = '/script/plus+filename.cgi'; my $q = CGI->new; is($q->url(), 'http://example.com/script/plus+name.cgi', 'a plus sign in a script name is preserved when calling url()'); is($q->path_info(), '/hello+world', 'a plus sign in a script name is preserved when calling path_info()'); }; done_testing();