print_select, print_select_hash: remove line endings and other special symbols (closes #593)
This commit is contained in:
parent
44ae16ce27
commit
e88c194357
|
@ -461,6 +461,8 @@
|
||||||
else
|
else
|
||||||
$sel = "";
|
$sel = "";
|
||||||
|
|
||||||
|
$v = trim($v);
|
||||||
|
|
||||||
print "<option value=\"$v\" $sel>$v</option>";
|
print "<option value=\"$v\" $sel>$v</option>";
|
||||||
}
|
}
|
||||||
print "</select>";
|
print "</select>";
|
||||||
|
@ -474,6 +476,8 @@
|
||||||
else
|
else
|
||||||
$sel = "";
|
$sel = "";
|
||||||
|
|
||||||
|
$v = trim($v);
|
||||||
|
|
||||||
print "<option $sel value=\"$v\">".$values[$v]."</option>";
|
print "<option $sel value=\"$v\">".$values[$v]."</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue