Ticket #865 (closed defect: fixed)
JavaScriptHelper::toJsObject Bug
| Reported by: | what4893 | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Javascript | Version: | 2.1.0 Stable |
| Keywords: | JavaScriptHelper | Cc: |
Description
There is a bad assumption on line 110 of the JavaScriptHelper? class. When converting a PHP array beginning with a zero (i.e. array(0,3,5)) this function uses if($strList) in which case 0 will evaluate to false generating the incorrect comma sequence and lumping the first two elements together as 03. A simple fix would be to use strlen() around $strList or some other check.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

