fixed problem with quotes in DN

This commit is contained in:
Roland Gruber 2005-08-29 21:43:57 +00:00
parent 9b0c27d6ea
commit c03fbe45f7
1 changed files with 7 additions and 3 deletions

View File

@ -54,20 +54,24 @@ if (!isset($_SESSION['loggedIn'])) {
// Set correct language, codepages, ....
setlanguage();
//load account
if ($_GET['DN']) {
//load account
$DN = str_replace("\'", '', $_GET['DN']);
$type = str_replace("\'", '', $_GET['type']);
if ($_GET['type'] == $type) $type = str_replace("'", '',$_GET['type']);
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
$_SESSION['account'] = new accountContainer($type, 'account');
$_SESSION['account']->load_account($DN);
}
}
// new account
else if (count($_POST)==0) {
$type = str_replace("\'", '', $_GET['type']);
if ($_GET['type'] == $type) $type = str_replace("'", '',$_GET['type']);
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
$_SESSION['account'] = new accountContainer($type, 'account');
$_SESSION['account']->new_account();
}
}
// show account page
$_SESSION['account']->continue_main($_POST);
?>