Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] 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 and issues discovered during the last development stages of K 6.3

Les sujets sont déplacés dans ce domaine ne sont fermés parce qu'ils se rapportent à des versions non prises en charge de Kunena.

Question Erreur 500 lorsqu'un message contient certaines URL

More
11 years 3 months ago #1 by François59
Bonjour,

J'obtiens régulièrement des erreurs 500 sur certains messages contenant certains types d'adresses URL. En supprimant l'adresse URL dans kunena_messages_text, l'erreur disparaît.

Par exemple, l'adresse URL fait planter Kunena 2.0.3

www.ebay.co.uk/sch/Cars-/9801/i.html ?

Est-ce un bug de Kunena 2.0.3 ou bien cela provient de ma configuration.

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

More
11 years 3 months ago #2 by xillibit
Bonjour,

C'est bien un bug dans Kunena, merci pour la remontée du problème j'ai pu trouver un correctif. Le correctif est le suivant :

dans le fichier /administrator/components/com_kunena/libraries/bbcode/bbcode.php ligne 129, remplace ça :
Code:
if (isset($path[1]) && $path[1] == 'sch') { // convert ebay search to embedded widget parse_str($params['query'], $query); if (empty($query['_nkw'])) break; return '<object width="355" height="300"><param name="movie" value="http://togo.ebay.com/togo/togo.swf?2008013100" /><param name="flashvars" value="base=http://togo.ebay.com/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=' . urlencode($query['_nkw']) .'&campid=5336042350" /><embed src="http://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.com/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=' . urlencode($query['_nkw']) . '&campid=5336042350"></embed></object>'; /* $text = preg_replace ( '#.*\.ebay\.([^/]+)/.*satitle=([^&]+).*#u', '<object width="355" height="300"><param name="movie" value="http://togo.ebay.$1/togo/togo.swf?2008013100" /><param name="flashvars" value="base=http://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350" /><embed src="http://togo.ebay.$1/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350"></embed></object>', $text ); */ }

par ça :
Code:
parse_str($params['query'], $query); if (isset($path[1]) && $path[1] == 'sch' && !empty($query['_nkw'])) { // convert ebay search to embedded widget return '<object width="355" height="300"><param name="movie" value="http://togo.ebay.com/togo/togo.swf?2008013100" /><param name="flashvars" value="base=http://togo.ebay.com/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=' . urlencode($query['_nkw']) .'&campid=5336042350" /><embed src="http://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.com/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=' . urlencode($query['_nkw']) . '&campid=5336042350"></embed></object>'; /* $text = preg_replace ( '#.*\.ebay\.([^/]+)/.*satitle=([^&]+).*#u', '<object width="355" height="300"><param name="movie" value="http://togo.ebay.$1/togo/togo.swf?2008013100" /><param name="flashvars" value="base=http://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350" /><embed src="http://togo.ebay.$1/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350"></embed></object>', $text ); */ }

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: sozzled

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

More
11 years 3 months ago #3 by François59
Merci xillibit pour ta réactivité et encore désolé pour les soucis causés sur le forum.

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

Time to create page: 0.456 seconds