| 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/mail/mailman/files/ |
Upload File : |
--- Mailman/Cgi/private.py.orig 2010-09-21 03:18:27.000000000 +0900
+++ Mailman/Cgi/private.py 2011-04-08 22:28:09.000000000 +0900
@@ -116,6 +116,7 @@
i18n.set_language(mlist.preferred_language)
doc.set_language(mlist.preferred_language)
+ is_cgi = 0
cgidata = cgi.FieldStorage()
username = cgidata.getvalue('username', '')
@@ -179,6 +180,10 @@
elif true_filename.endswith('.gz'):
import gzip
f = gzip.open(true_filename, 'r')
+ elif true_filename.endswith('namazu.cgi'):
+ os.putenv('SCRIPT_NAME', 'namazu.cgi')
+ f = os.popen(true_filename, 'r')
+ is_cgi = 1
else:
f = open(true_filename, 'r')
except IOError:
@@ -188,6 +193,7 @@
print doc.Format()
syslog('error', 'Private archive file not found: %s', true_filename)
else:
- print 'Content-type: %s\n' % ctype
+ if not is_cgi:
+ print 'Content-type: %s\n' % ctype
sys.stdout.write(f.read())
f.close()