| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/www/publicfile/files/ |
Upload File : |
--- httpd.c.orig Tue Nov 9 02:23:46 1999
+++ httpd.c Sun Dec 9 21:30:59 2001
@@ -271,8 +271,16 @@
if (!stralloc_copyb(&path,host.s + i,host.len - i)) _exit(21);
host.len = i;
}
- else
- if (!stralloc_copy(&path,&url)) _exit(21);
+ else {
+ if (case_startb(url.s,url.len,"https://")) {
+ if (!stralloc_copyb(&host,url.s + 8,url.len - 8)) _exit(21);
+ i = byte_chr(host.s,host.len,'/');
+ if (!stralloc_copyb(&path,host.s + i,host.len - i)) _exit(21);
+ host.len = i;
+ }
+ else
+ if (!stralloc_copy(&path,&url)) _exit(21);
+ }
if (!path.len || (path.s[path.len - 1] == '/'))
if (!stralloc_cats(&path,"index.html")) _exit(21);
--- file.c.orig Wed Dec 12 07:09:57 2001
+++ file.c Wed Dec 12 07:09:33 2001
@@ -15,7 +15,11 @@
char *x;
x = env_get("TCPREMOTEIP");
- if (!x) x = "0";
+ if (!x) {
+ x = env_get("SSLREMOTEIP");
+ if (!x)
+ x = "0";
+ }
substdio_puts(subfderr,x);
substdio_puts(subfderr,flagread ? " read ": " dir ");