HomeHelpTrac

Ticket #1897 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

$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.

Change History

comment:1 Changed 2 years ago by AlexT

  • Description modified (diff)

comment:3 Changed 2 years ago by AntonL

  • Status changed from new to closed
  • Resolution set to fixed

Done for Articles, Feedback and News

Note: See TracTickets for help on using tickets.