View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
03472Bug reportsOtherpublic2009-08-24 22:27
Reportershin2 Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.85+ 
Fixed in Version1.85+ 
Summary03472: Import of JavaScript with "\n" in strings converts "\n" to real newlines
Description

If a question that contains JavaScript is exported as "Question text
\n<script type=""text/javascript"">\nfunction someJS() {\n my var = ""asdf"" + ""\n"";\n}\n</script>", the question import changes

"\n";

to

"
";

i.e., converts the \n inside a string to real newlines.

TagsNo tags attached.
Attached Files
limesurvey_question.csv (596 bytes)   
# LimeSurvey Question Dump
# DBVersion 138
# This is a dumped question from the LimeSurvey Script
# http://www.limesurvey.org/
# Do not change this header!

#
# QUESTIONS TABLE
#
"qid","sid","gid","type","title","question","preg","help","other","mandatory","lid","lid1","question_order","language"
"211","66249","29","T","Q01_02","Question contains Javascript<br />\n<script type=""text/javascript"">\nfunction someJS() {\n  my var = ""asdf"" + ""\n"";\n}\n</script>","","","N","N","0","0","1","en"

#
# ANSWERS TABLE
#

#
# LABELSETS TABLE
#

#
# LABELS TABLE
#

#
# QUESTION_ATTRIBUTES TABLE
#
limesurvey_question.csv (596 bytes)   
Bug heat0
Complete LimeSurvey version number (& build)7253
I will donate to the project if issue is resolved
BrowserFirefox 3.0.11
Database type & versionMySQL 5.0.45
Server OS (if known)Windows XP SP3
Webserver software & version (if known)Apache 2.2.* (XAMPP 1.6.4 Windows)
PHP Version5.2.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

Issue History

Date Modified Username Field Change
2009-07-11 19:35 shin2 New Issue
2009-07-11 19:35 shin2 Status new => assigned
2009-07-11 19:35 shin2 Assigned To => user372
2009-07-11 19:35 shin2 File Added: limesurvey_question.csv
2009-07-11 19:35 shin2 Build Number => 7253
2009-07-11 19:35 shin2 Browser => Firefox 3.0.11
2009-07-11 19:35 shin2 Database & DB-Version => MySQL 5.0.45
2009-07-11 19:35 shin2 Operating System (Server) => Windows XP SP3
2009-07-11 19:35 shin2 Webserver => Apache 2.2.* (XAMPP 1.6.4 Windows)
2009-07-11 19:35 shin2 PHP Version => 5.2.4
2009-07-11 19:57 user372 Assigned To user372 => c_schmitz
2009-08-19 13:13 c_schmitz Status assigned => resolved
2009-08-19 13:13 c_schmitz Fixed in Version => 1.85+
2009-08-19 13:13 c_schmitz Resolution open => fixed
2009-08-24 22:27 c_schmitz Status resolved => closed
2010-05-06 10:27 c_schmitz Category Import / Export => (No Category)