Kunena 6.3.3 released

The Kunena team has announce the arrival of Kunena 6.3.3 [K 6.3.3] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

Question preg_replace_callback() error

More
5 years 3 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
5 years 3 months ago - 5 years 3 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: 5 years 3 months ago by theITfactor.

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

More
5 years 3 months ago #3 by rich

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

Time to create page: 0.467 seconds