View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
15192Bug reportsResponse browsingpublic2019-09-02 10:42
Reporterp_teichmann Assigned Top_teichmann  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.17.x 
Summary15192: entering html code inside the answeroptions for List type questions will break/alter the html for editing answers
Description

Entering html code inside the answeroptions for List type questions will break the editanswer display. When the altered html is saved it will write wrong (most likely empty values) in the database.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)3.17.12
I will donate to the project if issue is resolvedNo
Browser
Database type & versionnot relevant
Server OS (if known)
Webserver software & version (if known)
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2019-08-27 10:39

developer   ~53278

What html ?
In answer ?

This is really unclear ;)

p_teichmann

p_teichmann

2019-08-27 14:16

administrator   ~53292

Yeah sorry forgot to mention something :) should be clear now

DenisChenu

DenisChenu

2019-08-27 14:40

developer   ~53294

You mean <strong>strong</strong> for example ?

I must check but if i remind : in 2.X : it shown strong (strip tags) in list, and value is saved.

p_teichmann

p_teichmann

2019-08-27 14:45

administrator   ~53296

Last edited: 2019-08-27 15:47

havent tried the basic one but this will break

<table border="0" cellpadding="1" cellspacing="1" style="height:50px;"> <tbody> <tr> <td style="vertical-align:middle"><span style="font-size:16px;"><p style="text-align: center;">
höre ich

</span> </td> </tr> </tbody> </table>

https://github.com/LimeSurvey/LimeSurvey/blob/master/application/controllers/admin/dataentry.php#L716
i fixed it with using strip everything from it for the display with flattenText

DenisChenu

DenisChenu

2019-08-27 15:40

developer   ~53303

Aaaaaaaaaahhh it's in dataentry, not public survey …

Sorry : misunderstand …
You put it at [All Projects] Survey taking

lime_release_bot

lime_release_bot

2019-09-02 10:42

administrator   ~53379

Fixed in Release 3.17.14+190902

Related Changesets

LimeSurvey: master 356956b6

2019-08-27 16:37

Patrick Teichmann


Details Diff
Fixed issue 15192: entering html code inside the answeroptions for List type questions will break/alter the html for editing answers Affected Issues
15192
mod - application/controllers/admin/dataentry.php Diff File

Issue History

Date Modified Username Field Change
2019-08-27 10:32 p_teichmann New Issue
2019-08-27 10:32 p_teichmann Status new => assigned
2019-08-27 10:32 p_teichmann Assigned To => p_teichmann
2019-08-27 10:39 DenisChenu Note Added: 53278
2019-08-27 14:15 p_teichmann Summary entering html code for List type questions will break the display and alter the database when saved => entering html code for List type questions will break/alter the html for editing answers
2019-08-27 14:15 p_teichmann Description Updated
2019-08-27 14:16 p_teichmann Note Added: 53292
2019-08-27 14:17 p_teichmann Description Updated
2019-08-27 14:20 p_teichmann Summary entering html code for List type questions will break/alter the html for editing answers => entering html code inside the answeroptions for List type questions will break/alter the html for editing answers
2019-08-27 14:28 p_teichmann Description Updated
2019-08-27 14:40 DenisChenu Note Added: 53294
2019-08-27 14:45 p_teichmann Note Added: 53296
2019-08-27 14:46 p_teichmann Note Edited: 53296
2019-08-27 14:46 p_teichmann Note Edited: 53296
2019-08-27 14:46 p_teichmann Note Edited: 53296
2019-08-27 14:48 p_teichmann Note Edited: 53296
2019-08-27 14:48 p_teichmann Note Edited: 53296
2019-08-27 14:57 p_teichmann Note Edited: 53296
2019-08-27 14:59 p_teichmann Note Edited: 53296
2019-08-27 15:40 DenisChenu Note Added: 53303
2019-08-27 15:45 p_teichmann Category Survey taking => Response browsing
2019-08-27 15:47 p_teichmann Note Edited: 53296
2019-08-30 14:13 c_schmitz Changeset attached => LimeSurvey master 356956b6
2019-09-02 10:42 lime_release_bot Note Added: 53379
2019-09-02 10:42 lime_release_bot Status assigned => closed
2019-09-02 10:42 lime_release_bot Resolution open => fixed