Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question aspx. Image in Signature adds amp;

More
15 years 6 months ago #64360 by Phoenigs
Hi,

thank you very much for the wonderful new version of Kunena. Once I eliminated all other mootools-related modules and the Joomla-SEF it works just fine.

I even had to find out that finally you allow us to display dynamic pictures in the signature. Before that we could only display them in the announcements. Ideally that feature would be even better, if we could allow aspx-images only incoming from certain ip-addresses, in my example below: only starting with: 94.23.239.117

My question is, wether you have an idea, why Kunena changes the "&" to "&" if the code is embraced by img tags. It would be great, if you'd think about a workaround:

http://94.23.239.117/BloodBowlManager.WebSite/Signature2.aspx?leagueid=1782&Type=png&Team=Asgaad%20Hammer

94.23.239.117/BloodBowlManager.WebSite/S...Team=Asgaad%20Hammer

(configuration I cannot support you with, due to this error: Fatal error: Call to a member function data() on a non-object in .../administrator/components/com_kunena/admin.kunena.php on line 3292, but I think you are working on this already.)

Thanks and cheers
Philipp

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

More
15 years 6 months ago #64427 by xillibit
Hello,

Look in the file lib/parser.php how the [img][/img] things are processed...

I don't provide support by PM, because this can be useful for someone else.

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

More
15 years 6 months ago #64497 by Phoenigs
Thank you for the answer.

I've looked into the file kunena.parser.php and might have spotted the area to be looked at, but have no idea what to do.
Code:
case 'img' : $task->autolink_disable --; // continue autolink conversion if ($between) { if ($kunena_my->id == 0 && $kunena_config->showimgforguest == 0) { // Hide between content from non registered users $tag_new = '<b>' . JText::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEIMG') . '</b>'; return TAGPARSER_RET_REPLACED; } $fileurl = $between; if ($kunena_config->bbcode_img_secure != 'image') { static $file_ext = null; $matches = null; if (empty ( $file_ext )) { $params = &JComponentHelper::getParams ( 'com_media' ); $file_ext = explode ( ',', $params->get ( 'upload_extensions' ) ); } preg_match ( '/\.([\w\d]+)$/', $fileurl, $matches ); if (! isset ( $matches [1] ) || ! in_array ( JString::strtolower ( $matches [1] ), $file_ext )) { // if the image has not exentions return it like a link and if it's allowed in configuration if ($kunena_config->bbcode_img_secure == 'link') { if (! preg_match ( "`^(https?://)`", $fileurl )) { $fileurl = 'http://' . $fileurl; } $fileurl = kunena_htmlspecialchars ( $fileurl, ENT_QUOTES ); $tag_new = "<a href='" . $fileurl . "' rel=\"nofollow\" target=\"_blank\">" . $fileurl . '</a>'; return TAGPARSER_RET_REPLACED; } else { $tag_new = kunena_htmlspecialchars ( $fileurl, ENT_QUOTES ); return TAGPARSER_RET_REPLACED; } break; } }

Can you give me a clue, please?

Thanks
Philipp

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

More
15 years 6 months ago #65217 by Phoenigs
Any parser-Guru present?

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

More
15 years 6 months ago - 15 years 6 months ago #66455 by ender

Phoenigs wrote: (configuration I cannot support you with, due to this error: Fatal error: Call to a member function data() on a non-object in .../administrator/components/com_kunena/admin.kunena.php on line 3292, but I think you are working on this already.)


I had the same problem with Report Configuration Settings after upgrading Uddeim to 2.1 Stable :(


After disabling following, this report works, but something is wrong..:
admin.kunena.php row 3287:

if ( JComponentHelper::isEnabled('uddeim') && JFile::exists(JPATH_SITE.'/components/com_uddeim/uddeim.php') ) {
$xml_uddeim = JFactory::getXMLparser('Simple');
$xml_uddeim->loadFile(JPATH_ADMINISTRATOR.'/components/com_uddeim/uddeim.j15.xml');
$version = $xml_uddeim->document->version[0];
$uddeim = 'UddeIm: Installed (Version : '.$version->data().')';
} else {
$uddeim = 'UddeIm: Disabled or not installed';
Last edit: 15 years 6 months ago by ender.

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

More
15 years 6 months ago #66470 by haithun
Code:
kunena_htmlspecialchars ( $fileurl, ENT_QUOTES );

This have to be the line. There is no other one being able to do so and the "&" is a HTML special char so it simply gets encoded. This should be no problem cause your webserver should interpretate both in the same way. If not I guess you have to fix it.

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

Time to create page: 0.272 seconds