Converting to get_var() for all HTTP_*_VARS.

This commit is contained in:
skeeter 2002-04-30 00:21:35 +00:00
parent e3bf408609
commit 998b1e05c7
2 changed files with 2 additions and 3 deletions

View File

@ -242,8 +242,7 @@
function initialize_vars($name) function initialize_vars($name)
{ {
$var = ($GLOBALS['HTTP_GET_VARS'][$name]?$GLOBALS['HTTP_GET_VARS'][$name]:''); $var = get_var($name,Array('GET','POST'));
$var = ($GLOBALS['HTTP_POST_VARS'][$name]?$GLOBALS['HTTP_POST_VARS'][$name]:$var);
if($this->debug) if($this->debug)
{ {
echo '<!-- '.$name.' = '.$var.' -->'."\n"; echo '<!-- '.$name.' = '.$var.' -->'."\n";

View File

@ -298,7 +298,7 @@
{ {
return $this->link( return $this->link(
Array( Array(
'menuaction' => $GLOBALS['HTTP_GET_VARS']['menuaction'], 'menuaction' => get_var('menuaction',Array('GET')),
'path' => $this->bo->path, 'path' => $this->bo->path,
'show_upload_boxes' => $number 'show_upload_boxes' => $number
), ),