We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
Calling Dropdown::showFromArray('name, $array), the array containing a key with a single quote
$array = [ "a" => "a", "d'apparence normale" => "d'apparence normale", ]
the HTML is rendered like the following
<select name="formcreator_field_965" id="dropdown_formcreator_field_96568633052" size="1" tabindex="-1" title="" style="display: none;"> <option value='a' selected=''>a</option> <option value='d'apparence normale'>d'apparence normale</option> </select>
When handling optgroups the key is escaped
glpi/inc/dropdown.class.php
Line 1889 in 584c075
but not when handling option
Line 1929 in 584c075
The text was updated successfully, but these errors were encountered:
escape single quote in HTML option of a dropdown
47d2a57
fix glpi-project#3308
d32bc58
fix #3308
7cd0aa1
No branches or pull requests
Hi
Calling Dropdown::showFromArray('name, $array), the array containing a key with a single quote
the HTML is rendered like the following
When handling optgroups the key is escaped
glpi/inc/dropdown.class.php
Line 1889 in 584c075
but not when handling option
glpi/inc/dropdown.class.php
Line 1929 in 584c075
The text was updated successfully, but these errors were encountered: