View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05576Bug reportsTranslationpublic2012-01-24 21:20
Reportergefaber Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.91+ 
Summary05576: Quick-translation adds backslashes before quotes and double-quotes
Description

Similar thing is reported here already and marked as fixed: http://bugs.limesurvey.org/view.php?id=5411

But it still doesn't work in Version 1.91+ Build 11232.

If you save

<script type="text/javascript" charset="utf-8" src="scripts/italianoVQ.js" language="JavaScript"></script>

in any field, it says this after saving (note the added backslashes):

<script type=\"text/javascript\" charset=\"utf-8\" src=\"scripts/italianoVQ.js\" language=\"JavaScript\"></script>

The same happens with single quotes and backslashes themselves. When you save it in a single group or question description (not using quick-translation) it works, though.

Steps To Reproduce

Try saving anything with quotes or double-quotes in Quick-Translation.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)11232
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5.0.51a
Server OS (if known)Linux 2.6.26-2-amd64
Webserver software & version (if known)Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g
PHP Version5.2.6-1+lenny13

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-11-15 15:39

administrator   ~16677

I guess it is because you have magic quotes activated on the PHP server config. Can you check, please?

c_schmitz

c_schmitz

2011-11-15 15:53

administrator   ~16678

Fixed at revision: 11372
Workaround: Deactivate magic quotes in your PHP configuration (it is soon obsolete anyway)

gefaber

gefaber

2011-11-15 16:04

reporter   ~16681

deactivating "magic_quotes_gpc" worked. my workaround before was a regexp-replace via phpmyadmin. i guess, there is a new version of this translation-tool for 2.0 if this one is obsolete.

dankeschön anyway! ;)

c_schmitz

c_schmitz

2012-01-24 21:20

administrator   ~16959

New 1.91+ version released.

Issue History

Date Modified Username Field Change
2011-11-12 18:37 gefaber New Issue
2011-11-14 18:27 c_schmitz Assigned To => c_schmitz
2011-11-14 18:27 c_schmitz Status new => assigned
2011-11-15 15:39 c_schmitz Note Added: 16677
2011-11-15 15:39 c_schmitz Status assigned => feedback
2011-11-15 15:53 c_schmitz Note Added: 16678
2011-11-15 15:53 c_schmitz Status feedback => resolved
2011-11-15 15:53 c_schmitz Fixed in Version => 1.91+
2011-11-15 15:53 c_schmitz Resolution open => fixed
2011-11-15 16:04 gefaber Note Added: 16681
2012-01-24 21:20 c_schmitz Note Added: 16959
2012-01-24 21:20 c_schmitz Status resolved => closed