fixed a possible problem with webservers or php?.
Sometimes ' in $_GET is masked as \', sometimes it's only '.
This commit is contained in:
parent
65de996633
commit
a770c35cd8
|
@ -76,6 +76,7 @@ if (isset($_GET['DN']) && $_GET['DN']!='') {
|
||||||
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
|
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
|
||||||
// get "real" DN from variable
|
// get "real" DN from variable
|
||||||
$DN = str_replace("\'", '',$_GET['DN']);
|
$DN = str_replace("\'", '',$_GET['DN']);
|
||||||
|
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
|
||||||
// Load existing group
|
// Load existing group
|
||||||
$account_new = loadgroup($DN);
|
$account_new = loadgroup($DN);
|
||||||
// Get a copy of original host
|
// Get a copy of original host
|
||||||
|
|
|
@ -72,6 +72,7 @@ if (isset($_GET['DN']) && $_GET['DN']!='') {
|
||||||
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
|
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
|
||||||
// get "real" DN from variable
|
// get "real" DN from variable
|
||||||
$DN = str_replace("\'", '',$_GET['DN']);
|
$DN = str_replace("\'", '',$_GET['DN']);
|
||||||
|
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
|
||||||
// Load existing host
|
// Load existing host
|
||||||
$account_new = loadhost($DN);
|
$account_new = loadhost($DN);
|
||||||
// Get a copy of original host
|
// Get a copy of original host
|
||||||
|
|
|
@ -79,6 +79,7 @@ if (isset($_GET['DN']) && $_GET['DN']!='') {
|
||||||
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
|
$account_old =& $_SESSION['account_'.$varkey.'_account_old'];
|
||||||
// get "real" DN from variable
|
// get "real" DN from variable
|
||||||
$DN = str_replace("\'", '',$_GET['DN']);
|
$DN = str_replace("\'", '',$_GET['DN']);
|
||||||
|
if ($_GET['DN'] == $DN) $DN = str_replace("'", '',$_GET['DN']);
|
||||||
// Load existing group
|
// Load existing group
|
||||||
$account_new = loaduser($DN);
|
$account_new = loaduser($DN);
|
||||||
$account_old = $account_new;
|
$account_old = $account_new;
|
||||||
|
|
Loading…
Reference in New Issue