Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Question preg_replace_callback() error

More
4 years 11 months ago #1 by theITfactor
Hi,

I'm getting a preg_replace_callback() error:
Code:
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:
Code:
$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
4 years 11 months ago - 4 years 11 months ago #2 by theITfactor
Maybe escaping the - after \w would fix it? also in line 212
Code:
$contents = preg_replace_callback('|\[K=(\w+)(?:\:([\w\-_]+))?\]|', array($this, 'fillTopicInfo'), $contents);
Last edit: 4 years 11 months ago by theITfactor.

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

More
4 years 11 months ago #3 by rich

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

Time to create page: 0.427 seconds