View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20345Bug reportsImport/Exportpublic2025-11-12 00:20
ReporterMazi Assigned Toc_schmitz  
PrioritynoneSeverityblock 
Status closedResolutionno change required 
Product Version6.6.x 
Summary20345: LSS files with text labels containing "<" are not imported correctly and result in empty items
Description

At our survey a subquestion had this text:
<Ressources pour l’enseignement et

Exporting to LSS and importing at another system lead to an empty element at this question for this label. Probably the "<" character was not escaped properly and lead to a broken XML structure.

Steps To Reproduce

Steps to reproduce

Import the attached LSS file.
Open the French (FR) logic file.
Search for question "5-06. Les éléments d’information suivants" and check subquestions

Expected result

See all subquestions.

Actual result

SQ003 is empty though the LSS contains the correct label.

TagsNo tags attached.
Attached Files
lss-import.png (8,708 bytes)   
lss-import.png (8,708 bytes)   
image.png (38,351 bytes)   
image.png (38,351 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)6.15.21
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL/MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version8.x

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2025-11-11 21:39

updater   ~83740

@tibor.pacalat: I can safely reproduce this. Please assign to a developer, should be a simply fix. Thanks!

c_schmitz

c_schmitz

2025-11-12 00:11

administrator   ~83741

The XML structure is fine. The text is not saved properly in the LSS, probably because it was not properly saved in the original survey.
The character < needs to be quoted in HTML to work properly.
On import this looks like invalid HTML which is then removed most likely by the XSS fiter.

c_schmitz

c_schmitz

2025-11-12 00:20

administrator   ~83742

Not a bug.

Issue History

Date Modified Username Field Change
2025-11-11 21:38 Mazi New Issue
2025-11-11 21:38 Mazi File Added: lss-import.png
2025-11-11 21:38 Mazi File Added: image.png
2025-11-11 21:38 Mazi File Added: G-SHPPS (local MASTER) (111111)_29-OCT-25.lss
2025-11-11 21:39 Mazi Note Added: 83740
2025-11-11 21:39 Mazi Bug heat 0 => 2
2025-11-12 00:11 c_schmitz Note Added: 83741
2025-11-12 00:11 c_schmitz Bug heat 2 => 4
2025-11-12 00:20 c_schmitz Assigned To => c_schmitz
2025-11-12 00:20 c_schmitz Status new => closed
2025-11-12 00:20 c_schmitz Resolution open => no change required
2025-11-12 00:20 c_schmitz Note Added: 83742