allow file upload in parseHtml() restricted mode
This commit is contained in:
parent
86f481b840
commit
8b50339b57
|
@ -559,7 +559,7 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
|
||||||
// input fields
|
// input fields
|
||||||
case 'input':
|
case 'input':
|
||||||
$type = $input[$i][$j]['type'];
|
$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";
|
$output = "<input";
|
||||||
if ($input[$i][$j]['name']!='') $output .= ' name="' . $input[$i][$j]['name'] . '"';
|
if ($input[$i][$j]['name']!='') $output .= ' name="' . $input[$i][$j]['name'] . '"';
|
||||||
if ($type != '') $output .= ' type="' . $type . '"';
|
if ($type != '') $output .= ' type="' . $type . '"';
|
||||||
|
|
Loading…
Reference in New Issue