View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04668Bug reportsSurvey takingpublic2010-10-19 21:12
Reporterronvdburg Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.90+ 
Summary04668: Answers with "<" character disappear in mail response submission and in pdf print
Description

I created a list (dropdown) question with the following labelset:
<10
10-100

100

Now, the answers appear properly in the printedversion, but disappear in the email response submission (full version) and in the pdf version.

Steps To Reproduce
  1. Create/select a survey, enable mail submission of full answers.

  2. Create/select a question of type:
    List (Dropdown)
    or
    Type=='!'

  3. Create a label set with the three options
    a. <10
    b. 10-100
    c. >100

Run a survey, choose option a (<10).
Submit and print answers.

OK: The on-screen print will show the correct answer.

Wrong: Pressing the pdf button will give you a pdf that contains the question without the answer (neither the full answer text, nor the answer code).

Wrong: The admin mail with the Response submission contains the question without the answer (neither the full answer text, nor the answer code).

Additional Information

I presume that the problem lies in the '<' character that is used as an html tag.
I presume that the strip_tags function replaces:
"<10 [a]"
with
""
(I.e. an empty string.)

I could not easily find the proper strip_tags.
Further, I tried to replace ENT_QUOTES with ENT_COMPAT to not only protect quotes, but also the '<' and the '>' character, but could not make that work.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)9205
I will donate to the project if issue is resolved
Browser
Database type & versionmysql 5.0.77
Server OS (if known)Centos 5.3 / Linux 2.6.18
Webserver software & version (if known)apache 2.2.3
PHP Version5.1.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

ronvdburg

ronvdburg

2010-10-11 18:29

reporter   ~13083

I circumvented the issue by changing the label from:
"<10"
into:
"less than 10".

That solved my problem, but this is not neat for it contains English text.

c_schmitz

c_schmitz

2010-10-13 16:21

administrator   ~13118

Fixed in rev 9228.

Even with this fix you will have to use the '<' proper HTML tag for a < sign.

c_schmitz

c_schmitz

2010-10-19 21:12

administrator   ~13282

Released in 1.90 plus release.

Issue History

Date Modified Username Field Change
2010-10-11 18:28 ronvdburg New Issue
2010-10-11 18:29 ronvdburg Note Added: 13083
2010-10-13 15:12 c_schmitz Assigned To => c_schmitz
2010-10-13 15:12 c_schmitz Status new => assigned
2010-10-13 16:21 c_schmitz Note Added: 13118
2010-10-13 16:22 c_schmitz Status assigned => resolved
2010-10-13 16:22 c_schmitz Resolution open => fixed
2010-10-13 16:23 c_schmitz Fixed in Version => 1.90+
2010-10-19 21:12 c_schmitz Note Added: 13282
2010-10-19 21:12 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking