View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05875 | Bug reports | Import/Export | public | 2012-03-05 13:48 | 2012-03-14 21:08 |
Reporter | hugomp | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92 | ||||
Fixed in Version | 1.92+ | ||||
Summary | 05875: Flexible Labels do not register in french when apostrophes are in label text | ||||
Description | When saving Flexible Labels (French) with apostrophes in label text mySql produces an error and the saving does not work. Example: D'accord..., Pas d'accord..., etc. | ||||
Tags | No tags attached. | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 120303 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | FF | ||||
Database type & version | MySQL: 5.0.77 | ||||
Server OS (if known) | Linux | ||||
Webserver software & version (if known) | ? | ||||
PHP Version | 5.2.14 | ||||
duplicate of | 05830 | closed | Quotes are not supported in label titles |
Not a security issue. |
|
I noticed that not only single quotes (') are a problem but also double quotes ("). |
|
Hello, editanswer and editsubquestion are OK. Maybe use same function for label se edition is a good option. Denis |
|
Fixed in rev rc1ede9c - http://git.io/_PLpSw |
|
I made the changes in the three files as indicated in above link. |
|
hugomp - version you are using? it works fine here! |
|
Remember to clear your browser cache. |
|
I tried again: label.php: admin_core.js: updateset.js: does not work for me even after clearing browser cache... I am using version 1.92 |
|
hugomp : add this line echo $_POST['dataToSend']; above line no. 611 in admin/labels.php and tell me what do you get. |
|
Here it is: {\"langs\":[\"fr\"],\"codelist\":[\"0\",\"1\"],\"0\":{\"code\":\"1\",\"assessmentvalue\":\"0\",\"text_fr\":\"d\'accord\"},\"1\":{\"code\":\"2\",\"assessmentvalue\":\"0\",\"text_fr\":\"pas d\'accord\"}}
|
|
weird, i'm only escaping value and not property! |
|
Here is the site setting: http://www.pre-sales.ch/phpinfo.php |
|
Most probably, it's "magic_quotes_gpc=on". try setting it to off and it'll work i guess! |
|
I have no access to php.ini but putting this code: if (get_magic_quotes_gpc()) { at the top of the admin.php file... ...I can normally save label data WITHOUT any quote in the text (like before the changes) but putting quotes in it produces this time a MySql error. Following "echo $_POST['dataToSend'];" I get: MySql error: Wouldn't it make sens in the general coding of LimeSurvey to foresee both possibilities: 1)magic quotes on and 2)magic quotes off? Many providers with shared Apache Servers do not give access to php.ini. |
|
A solution to eliminate the MySql error is for me: $title = substr($title, 1, -1); in labels.php around line 650 before and for the INSERT statament |
|
1.92+ Build 120211 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-03-05 13:48 | hugomp | New Issue | |
2012-03-05 21:36 | c_schmitz | Assigned To | => c_schmitz |
2012-03-05 21:36 | c_schmitz | Status | new => assigned |
2012-03-06 00:34 | c_schmitz | Assigned To | c_schmitz => magiclko |
2012-03-06 00:36 | c_schmitz | Note Added: 17736 | |
2012-03-06 00:37 | c_schmitz | Note Edited: 17736 | |
2012-03-06 08:51 |
|
Relationship added | duplicate of 05830 |
2012-03-06 12:59 | hugomp | Note Added: 17745 | |
2012-03-06 13:23 | DenisChenu | Note Added: 17747 | |
2012-03-08 13:42 |
|
Note Added: 17788 | |
2012-03-08 13:42 |
|
Status | assigned => resolved |
2012-03-08 13:42 |
|
Fixed in Version | => 1.92+ |
2012-03-08 13:42 |
|
Resolution | open => fixed |
2012-03-08 21:13 | hugomp | Note Added: 17795 | |
2012-03-09 09:13 |
|
Note Added: 17797 | |
2012-03-09 09:42 | c_schmitz | Note Added: 17798 | |
2012-03-09 10:48 | hugomp | Note Added: 17799 | |
2012-03-09 16:32 |
|
Note Added: 17806 | |
2012-03-09 16:43 | hugomp | Note Added: 17807 | |
2012-03-09 18:20 |
|
Note Added: 17809 | |
2012-03-09 19:20 | hugomp | Note Added: 17810 | |
2012-03-09 20:30 |
|
Note Added: 17811 | |
2012-03-09 22:29 | hugomp | Note Added: 17812 | |
2012-03-10 18:03 | hugomp | Note Added: 17816 | |
2012-03-11 16:31 | c_schmitz | Note Added: 17824 | |
2012-03-11 16:31 | c_schmitz | Status | resolved => closed |
2012-03-14 21:08 |
|
Changeset attached | => Import 2012-03-09 13:30:34 Yii 69b720d8 |