View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05915 | Bug reports | public | 2012-03-14 18:26 | 2026-11-19 22:24 | |
| Reporter | TMSWhite | Assigned To | TMSWhite | ||
| Priority | low | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Summary | 05915: EM unit test errors - embedded newlines, and escaping html entities | ||||
| Description | There are still a few dozen errors on EM unit tests (Unit Tests of Isolated Expressions) that may be fixable. Most seem to relate to string handling (e.g. whether the EM tokenizer, PHP, and JavaScript handle escaped characters equivalently). | ||||
| Steps To Reproduce | see test cases in Unit Tests of Isolated Expressions, especially PROBLEMS WITH EMBEDDED NEWLINES: nl2br('hi\nthere\nhow\nare\nyou?') PROBLEMS WITH HTML ENTITIES: addslashes() | ||||
| Additional Information | The way that EM tests that the PHP and JavaScript results are the same may partly be a culprit for this behavior; and some of the unit tests may have the wrong expected value. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 120314 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Mysql 5.3 | ||||
| Server OS (if known) | Windows XP | ||||
| Webserver software & version (if known) | XAMPP | ||||
| PHP Version | 5.3 | ||||
| Git branch / Pull Request URL | |||||
|
Hello TMSWhite, |
|
|
The 'Unit Tests of Isolated Expressions' page this report refers to was removed from LimeSurvey long ago. Expression Manager is now covered by PHPUnit tests in tests/unit/helpers, so these old test failures can no longer be reproduced or acted on as described. Closing as obsolete; please open a new report if a specific escaping difference between PHP and JavaScript still shows up in LimeSurvey 7. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-03-14 18:26 | TMSWhite | New Issue | |
| 2012-03-15 01:35 | c_schmitz | Assigned To | => TMSWhite |
| 2012-03-15 01:35 | c_schmitz | Status | new => assigned |
| 2012-04-07 18:44 | TMSWhite | Relationship added | related to 05988 |
| 2012-04-11 17:56 | TMSWhite | Project | Bug reports => @10@ |
| 2021-12-30 11:36 | galads | Note Added: 67878 | |
| 2021-12-30 11:36 | galads | Status | assigned => feedback |
| 2026-11-19 22:24 | c_schmitz | Note Added: 87745 | |
| 2026-11-19 22:24 | c_schmitz | Bug heat | 2 => 4 |
| 2026-11-19 22:24 | c_schmitz | Status | feedback => closed |
| 2026-11-19 22:24 | c_schmitz | Resolution | open => no change required |
| 2026-11-19 22:24 | c_schmitz | Product Version | 1.92+ => |
| 2026-11-20 10:33 | c_schmitz | Category | Survey taking => (No Category) |