Project

General

Profile

« Previous | Next » 

Revision b155730f

Added by Stephen Beaver almost 10 years ago

Fixed $5022
Programmer used a GET form on a POST page.
See some openssl error messages but this may ne normal.

View differences:

src/usr/local/www/system_camanager.php
40 40

  
41 41
require("guiconfig.inc");
42 42
require_once("certs.inc");
43
print_r($_POST);
43 44

  
44 45
$ca_methods = array(
45 46
	"existing" => gettext("Import an existing Certificate Authority"),
......
246 247
			array_push($input_errors, gettext("Please select a valid Digest Algorithm."));
247 248
		}
248 249
	}
249

  
250
	print('Here 1<br />');
250 251
	/* if this is an AJAX caller then handle via JSON */
251 252
	if (isAjax() && is_array($input_errors)) {
253
			print('Here 2<br />');
252 254
		input_errors2Ajax($input_errors);
253 255
		exit;
254 256
	}
255 257

  
256 258
	/* save modifications */
257 259
	if (!$input_errors) {
258

  
260
		print('Here 3<br />');
259 261
		$ca = array();
260 262
		if (!isset($pconfig['refid']) || empty($pconfig['refid'])) {
261 263
			$ca['refid'] = uniqid();
......
438 440

  
439 441
require('classes/Form.class.php');
440 442
$form = new Form;
441
$form->setAction('system_camanager.php?act=edit');
443
//$form->setAction('system_camanager.php?act=edit');
442 444
if (isset($id) && $a_ca[$id])
443 445
{
444 446
	$form->addGlobal(new Form_Input(

Also available in: Unified diff