Project

General

Profile

Bug #16609 ยป bug_4310.diff

Administrator Admin, 2006-10-17 18:32

View differences:

t3lib/class.t3lib_tsfebeuserauth.php (Arbeitskopie)
$query = !t3lib_div::_GET('id') ? ('<input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />'.chr(10)) : '';
// the dummy field is needed for Firefox: to force a page reload on submit with must change the form value with JavaScript (see "onsubmit" attribute of the "form" element")
$query.= '<input type="hidden" name="TSFE_ADMIN_PANEL[DUMMY]" value="">';
$query.= '<input type="hidden" name="TSFE_ADMIN_PANEL[DUMMY]" value="" />';
foreach (t3lib_div::_GET() as $k => $v) {
if ($k != 'TSFE_ADMIN_PANEL') {
if (is_array($v)) {
$query.=$this->extPrintFeAdminDialogHiddenFields($k,$v);
} else {
$query.='<input type="hidden" name="'.$k.'" value="'.htmlspecialchars($v).'">'.chr(10);
$query.='<input type="hidden" name="'.$k.'" value="'.htmlspecialchars($v).'" />'.chr(10);
}
}
}
......
if (is_array($v)) {
$out.=$this->extPrintFeAdminDialogHiddenFields($key.'['.$k.']',$v);
} else {
$out.='<input type="hidden" name="'.$key.'['.$k.']" value="'.htmlspecialchars($v).'">'.chr(10);
$out.='<input type="hidden" name="'.$key.'['.$k.']" value="'.htmlspecialchars($v).'" />'.chr(10);
}
}
return $out;
    (1-1/1)