View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 18467 | Bug reports | public | 2022-11-08 12:18 | 2026-11-19 22:22 | |
| Reporter | DenisChenu | Assigned To | |||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Summary | 18467: Better validation of QuestionAttribute | ||||
| Description | There are only xss filter for validation on attribute value, then can enter anything for example for integer. | ||||
| Steps To Reproduce | Steps to reproduceCreate a question upload Expected resultValue are not saved, or are filtered as 0 Actual resultSaved as aaa | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | |||||
| I will donate to the project if issue is resolved | |||||
| Browser | |||||
| Database type & version | |||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | |||||
| Git branch / Pull Request URL | N/A | ||||
| related to | 18464 | closed | DenisChenu | Min/max settings doesn't work for question attribute with type of integer |
|
In general : we check it when using. Not a big issue, maybe not to fix. type are only helper then, no rules :). |
|
|
In LimeSurvey 7, question attribute values are checked against the attribute type on save (QuestionAttribute::sanitizeByInputType): number attributes must be numeric, switches must be 0/1 and select attributes must be one of their options. Closing as fixed. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-11-08 12:18 | DenisChenu | New Issue | |
| 2022-11-08 12:18 | DenisChenu | File Added: Capture d’écran du 2022-11-08 12-15-48.png | |
| 2022-11-08 12:19 | DenisChenu | Note Added: 72631 | |
| 2022-11-08 12:19 | DenisChenu | Bug heat | 0 => 2 |
| 2022-11-08 12:19 | DenisChenu | Relationship added | related to 18464 |
| 2026-11-19 22:22 | c_schmitz | Note Added: 87673 | |
| 2026-11-19 22:22 | c_schmitz | Bug heat | 2 => 4 |
| 2026-11-19 22:22 | c_schmitz | Status | new => closed |
| 2026-11-19 22:22 | c_schmitz | Resolution | open => fixed |
| 2026-11-20 10:33 | c_schmitz | Category | Survey Design => (No Category) |