×
Kunena 5.1.12.1 Released - Security release (22 Apr 2019)

The Kunena team has announce the arrival of Kunena 5.1.12.1 [K 5.1.12.1] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a security release.

Question preg_replace_callback() error

More
1 month 1 week ago #1 by theITfactor
Hi,

I'm getting a preg_replace_callback() error:
Warning: preg_replace_callback(): Compilation failed: invalid range in character class at offset 18 in /***/components/com_kunena/views/topics/view.html.php on line 203
Line 203:
$contents = preg_replace_callback('|\[K=(\w+)(?:\:([\w-_]+))?\]|', array($this, 'fillTopicInfo'), $contents);

I put that regex through Debuggex tester and it's saying that you cannot use "\w" as the start of a range

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #2 by theITfactor
Maybe escaping the - after \w would fix it? also in line 212
$contents = preg_replace_callback('|\[K=(\w+)(?:\:([\w\-_]+))?\]|', array($this, 'fillTopicInfo'), $contents);
Last edit: 1 month 1 week ago by theITfactor.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #3 by rich

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.098 seconds