Improved register_globals

This commit is contained in:
root 2008-09-03 18:04:50 +00:00
parent 17da2d3686
commit 7c04169bdc
2 changed files with 5 additions and 1 deletions

View file

@ -1543,7 +1543,7 @@
if($process != "" && $oldid == 20)
{
$CSR = trim($CSR);
$CSR = trim($_REQUEST['CSR']);
$_SESSION['_config']['tmpfname'] = tempnam("/tmp", "FOO");
$fp = fopen($_SESSION['_config']['tmpfname'], "w");
fputs($fp, $CSR);

View file

@ -452,6 +452,8 @@
function getcn2()
{
$rows=array();
$rowid=array();
for($cnc = 0; $cnc < $_SESSION['_config']['cnc']; $cnc++)
{
$CN = $_SESSION['_config']["$cnc.CN"];
@ -493,6 +495,8 @@
function getalt2()
{
$altrows=array();
$altid=array();
for($altc = 0; $altc < $_SESSION['_config']['subaltc']; $altc++)
{
$subalt = $_SESSION['_config']["$altc.subjectAltName"];