isset must be used before use a value into array
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
umask(0007);
|
umask(0007);
|
||||||
|
|
||||||
if ($_SERVER['PHP_AUTH_USER'])
|
if (isset($_SERVER['PHP_AUTH_USER']))
|
||||||
$PHPki_user = md5($_SERVER['PHP_AUTH_USER']);
|
$PHPki_user = md5($_SERVER['PHP_AUTH_USER']);
|
||||||
else
|
else
|
||||||
$PHPki_user = md5('default');
|
$PHPki_user = md5('default');
|
||||||
|
@@ -64,8 +64,8 @@ function upload($source, $destination, $content_type="application/octet-stream")
|
|||||||
function gpvar($v) {
|
function gpvar($v) {
|
||||||
global $_GET, $_POST;
|
global $_GET, $_POST;
|
||||||
$x = "";
|
$x = "";
|
||||||
if ($_GET[$v]) $x = $_GET[$v];
|
if (isset($_GET[$v])) $x = $_GET[$v];
|
||||||
if ($_POST[$v]) $x = $_POST[$v];
|
if (isset($_POST[$v])) $x = $_POST[$v];
|
||||||
if (get_magic_quotes_gpc()) $x = stripslashes($x);
|
if (get_magic_quotes_gpc()) $x = stripslashes($x);
|
||||||
return $x;
|
return $x;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user