fixed a possible problem with webservers or php?.

Sometimes ' in $_GET is masked as \', sometimes it's
only '.
This commit is contained in:
katagia 2004-02-08 16:03:51 +00:00
parent 65de996633
commit a770c35cd8
3 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,7 @@ if (isset($_GET['DN']) && $_GET['DN']!='') {
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
// get "real" DN from variable
$DN = str_replace("\'", '',$_GET['DN']);
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
// Load existing group
$account_new = loadgroup($DN);
// Get a copy of original host

View File

@ -72,6 +72,7 @@ if (isset($_GET['DN']) && $_GET['DN']!='') {
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
// get "real" DN from variable
$DN = str_replace("\'", '',$_GET['DN']);
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
// Load existing host
$account_new = loadhost($DN);
// Get a copy of original host

View File

@ -79,6 +79,7 @@ if (isset($_GET['DN']) && $_GET['DN']!='') {
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
// get "real" DN from variable
$DN = str_replace("\'", '',$_GET['DN']);
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
// Load existing group
$account_new = loaduser($DN);
$account_old = $account_new;