View Issue Details

This issue affects 1 person(s).
 36
IDProjectCategoryView StatusLast Update
17124Bug reportsImport/Exportpublic2026-10-24 23:41
ReporterDialogs Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.23.5 
Summary17124: 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.

TagsNo tags attached.
Attached Files
image2.png (4,173 bytes)   
image2.png (4,173 bytes)   
image1.png (2,710 bytes)   
image1.png (2,710 bytes)   
Bug heat36
Complete LimeSurvey version number (& build)3.23.5+200923
I will donate to the project if issue is resolvedNo
BrowserNA
Database type & versionmysql
Server OS (if known)Linux
Webserver software & version (if known)
PHP Version7.3
Git branch / Pull Request URL

Relationships

has duplicate 18402 closedc_schmitz Free text answer or comments get filtered on the response browsing screen or response detailed view 
has duplicate 17305 closedgalads Text responses are deleted in SPSS export if started with "<"+something w/o space 
has duplicate 17295 closedollehar On a "view response page" for response 32 / survey ID 274886, part of [Platform] response is not visible because of "<" symbol 

Users monitoring this issue

Dialogs

Activities

Dialogs

Dialogs

2021-02-23 18:04

reporter   ~62474

PHP version: 7.4.15
DB: MariaDB version 15.1

c_schmitz

c_schmitz

2026-10-14 20:41

administrator   ~86468

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40865

LimeBot

LimeBot

2026-10-20 17:06

administrator   ~86624

Fixed in Release 7.7.0+261020

Related Changesets

LimeSurvey: master 81f6df8d

2026-10-14 20:41

c_schmitz


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

Issue History

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
2026-10-15 21:17 c_schmitz Relationship added has duplicate 18402
2026-10-15 21:17 c_schmitz Bug heat 6 => 16
2026-10-20 17:06 LimeBot Note Added: 86624
2026-10-20 17:06 LimeBot Status resolved => closed
2026-10-20 17:06 LimeBot Bug heat 16 => 18
2026-10-24 23:41 c_schmitz Relationship added has duplicate 17305
2026-10-24 23:41 c_schmitz Bug heat 18 => 28
2026-10-24 23:41 c_schmitz Relationship added has duplicate 17295
2026-10-24 23:41 c_schmitz Bug heat 28 => 36