allow file upload in parseHtml() restricted mode

This commit is contained in:
Roland Gruber 2007-02-18 18:32:07 +00:00
parent 86f481b840
commit 8b50339b57
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
// input fields
case 'input':
$type = $input[$i][$j]['type'];
if ($restricted && (($type == "submit") || ($type == "reset") || ($type == "file"))) break; // no buttons in restricted mode
if ($restricted && (($type == "submit") || ($type == "reset"))) break; // no buttons in restricted mode
$output = "<input";
if ($input[$i][$j]['name']!='') $output .= ' name="' . $input[$i][$j]['name'] . '"';
if ($type != '') $output .= ' type="' . $type . '"';