View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 17124 | Bug reports | Import/Export | public | 2021-02-23 17:58 | 2026-10-14 20:41 |
| Reporter | Dialogs | Assigned To | c_schmitz | ||
| Priority | none | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.23.5 | ||||
| Summary | 17124: Truncated SPSS export data | ||||
| Description | When we export data to SPSS, answers to text questions that contain the "<" symbol are truncated just before the character in question. | ||||
| Steps To Reproduce | Enter an answer to a text question including the "<" character. | ||||
| Additional Information | The problem is also present when displaying the response table in the LS web interface. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 3.23.5+200923 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | NA | ||||
| Database type & version | mysql | ||||
| Server OS (if known) | Linux | ||||
| Webserver software & version (if known) | |||||
| PHP Version | 7.3 | ||||
|
PHP version: 7.4.15 |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40865 |
|
|
LimeSurvey: master 81f6df8d 2026-10-14 20:41 Details Diff |
Fixed issue 17124: Text answers containing "<" followed by a letter were cut off in the response list, the response view and the SPSS/R export Dev Participant answers are plain text and no longer go through strip_tags()/HTMLPurifier; they are HTML escaped on display instead, answer option texts are still flattened Dev New viewHelper::responseValueToText(), ellipsize() got an optional $bStripTags parameter |
Affected Issues 17124 |
|
| mod - application/controllers/ResponsesController.php | Diff File | ||
| mod - application/helpers/common_helper.php | Diff File | ||
| mod - application/helpers/export_helper.php | Diff File | ||
| mod - application/helpers/viewHelper.php | Diff File | ||
| mod - application/models/SurveyDynamic.php | Diff File | ||
| add - tests/unit/helpers/ResponseValueLessThanTest.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-02-23 17:58 | Dialogs | New Issue | |
| 2021-02-23 17:58 | Dialogs | File Added: image2.png | |
| 2021-02-23 17:58 | Dialogs | File Added: image1.png | |
| 2021-02-23 18:03 | Dialogs | Issue Monitored: Dialogs | |
| 2021-02-23 18:04 | Dialogs | Note Added: 62474 | |
| 2026-10-14 20:41 | c_schmitz | Changeset attached | => LimeSurvey master 81f6df8d |
| 2026-10-14 20:41 | c_schmitz | Note Added: 86468 | |
| 2026-10-14 20:41 | c_schmitz | Assigned To | => c_schmitz |
| 2026-10-14 20:41 | c_schmitz | Status | new => resolved |
| 2026-10-14 20:41 | c_schmitz | Resolution | open => fixed |
| 2026-10-14 20:41 | c_schmitz | Bug heat | 4 => 6 |