View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
09785 | Bug reports | Expression Manager | public | 2015-07-18 14:03 | 2015-07-24 11:44 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.06+ | ||||
Fixed in Version | 2.06+ | ||||
Summary | 09785: substr and utf8 : mb_substr in JS , substr in PHP | ||||
Description | Using substr(QCODE,0,2) EM are different in js and in PHP with utf8 caracter | ||||
Steps To Reproduce | Import survey and test: | ||||
Additional Information | Think user want mb_substr and not substr then i think replace substr my mb_substr in EM core. Another solution : fix substr in js to use real substr (surely in phpJS) and add an mb_substr EM function. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 150718 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | debian/linux | ||||
Webserver software & version (if known) | apache | ||||
PHP Version | PHP Version 5.4.41-0+deb7u1 | ||||
@Mazi : you think it's better to silently replace substr by UTF8 mb_substr or to add a new function ? PS: give me after, i fix it before next release |
|
Same with strlen / surely stripos, strtolower .... |
|
@Carsten : i have already the fix to move sustr/strlen etc ... to mb function. Think all user want this, and JS have already near mb system. Ok to move it o mb function ? |
|
I agree. PLease replace! |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=15583 |
|
Fix committed to develop branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=15584 |
|
Think i have all here ? |
|
Version 2.06 Build 150723 released |
|
LimeSurvey: master c031c7d2 2015-07-21 10:58 Details Diff |
New feature 09785: unicode function for substr and other text management function Dev: mb_ for substr,stripos,strpos,strlen,strtolower,strtoupper,strstr,stristr Dev: fixed different return value for strpos in JS and PHP (-1 in js, false in PHP) Dev: add offset to strpos (exiting in stripos, not in strpos) |
Affected Issues 09785 |
|
mod - application/helpers/expressions/em_core_helper.php | Diff File | ||
mod - scripts/expressions/em_javascript.js | Diff File | ||
LimeSurvey: develop 0fe2cf79 2015-07-21 10:58 Details Diff |
New feature 09785: unicode function for substr and other text management function Dev: mb_ for substr,stripos,strpos,strlen,strtolower,strtoupper,strstr,stristr Dev: fixed different return value for strpos in JS and PHP (-1 in js, false in PHP) Dev: add offset to strpos (exiting in stripos, not in strpos) Dev: cherry-picking |
Affected Issues 09785 |
|
mod - application/helpers/expressions/em_core_helper.php | Diff File | ||
mod - scripts/expressions/em_javascript.js | Diff File | ||
LimeSurvey: master d1e02b28 2015-07-21 11:30 Details Diff |
Dev: Fixed issue PHP notice with debug 2 using offset in strpos Dev: child of 09785 |
Affected Issues 09785 |
|
mod - application/helpers/expressions/em_core_helper.php | Diff File | ||
LimeSurvey: develop 22940f54 2015-07-21 11:30 Details Diff |
Dev: Fixed issue PHP notice with debug 2 using offset in strpos Dev: child of 09785 |
Affected Issues 09785 |
|
mod - application/helpers/expressions/em_core_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-07-18 14:03 | DenisChenu | New Issue | |
2015-07-18 14:03 | DenisChenu | File Added: limesurvey_survey_substr.lss | |
2015-07-18 14:04 | DenisChenu | Note Added: 32719 | |
2015-07-18 14:04 | DenisChenu | Assigned To | => Mazi |
2015-07-18 14:04 | DenisChenu | Status | new => feedback |
2015-07-18 14:04 | DenisChenu | Note Edited: 32719 | |
2015-07-18 17:21 | DenisChenu | Note Added: 32720 | |
2015-07-18 17:21 | DenisChenu | Status | feedback => assigned |
2015-07-18 17:21 | DenisChenu | Status | assigned => feedback |
2015-07-20 14:21 | DenisChenu | Assigned To | Mazi => c_schmitz |
2015-07-20 14:21 | DenisChenu | Status | feedback => assigned |
2015-07-20 14:23 | DenisChenu | Note Added: 32724 | |
2015-07-20 14:23 | DenisChenu | Note Edited: 32724 | |
2015-07-20 20:06 | c_schmitz | Note Added: 32727 | |
2015-07-20 20:06 | c_schmitz | Assigned To | c_schmitz => DenisChenu |
2015-07-21 11:04 | DenisChenu | Changeset attached | => LimeSurvey master c031c7d2 |
2015-07-21 11:04 | DenisChenu | Note Added: 32731 | |
2015-07-21 11:04 | DenisChenu | Resolution | open => fixed |
2015-07-21 11:09 | DenisChenu | Changeset attached | => LimeSurvey develop 0fe2cf79 |
2015-07-21 11:09 | DenisChenu | Note Added: 32732 | |
2015-07-21 11:10 | DenisChenu | Note Added: 32733 | |
2015-07-21 11:10 | DenisChenu | Status | assigned => resolved |
2015-07-21 11:10 | DenisChenu | Fixed in Version | => 2.06+ |
2015-07-21 11:10 | DenisChenu | File Added: limesurvey_survey_mbfunction.lss | |
2015-07-21 11:11 | DenisChenu | File Deleted: limesurvey_survey_substr.lss | |
2015-07-21 11:21 | DenisChenu | File Deleted: limesurvey_survey_mbfunction.lss | |
2015-07-21 11:21 | DenisChenu | File Added: limesurvey_survey_mbfunction.lss | |
2015-07-21 11:34 | DenisChenu | Changeset attached | => LimeSurvey develop 22940f54 |
2015-07-21 11:34 | DenisChenu | Changeset attached | => LimeSurvey master d1e02b28 |
2015-07-24 11:44 | c_schmitz | Note Added: 32781 | |
2015-07-24 11:44 | c_schmitz | Status | resolved => closed |