Ticket #1897 (closed defect: fixed)
$500 becomes 00 in Articles(maybe News) posts
| Reported by: | AlexT | Owned by: | AntonL |
|---|---|---|---|
| Priority: | major | Milestone: | 7.0.1 |
| Keywords: | Cc: |
Description (last modified by AlexT) (diff)
$500 becomes 00 in Articles(maybe News) posts
preg_replace uses $1, $2 and so on as an internal variable to get the value of matched content, therefore when it sees $100 and doesn't have 100-th matched peace of content it replace the $100 with some empty value.
str_replace('$', '\\$', $sContent) - fixed the issue. The main problem was to find the place where it should be inserted.
Note: See
TracTickets for help on using
tickets.