×
Kunena 5.2.4 and Blue eagle 1.6.4 released (04 Apr 2021)

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

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with, this template isn't designed to works with Bootstrap 3 and Bootstrap 4.

× 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
8 years 4 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
8 years 4 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 :
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="https://togo.ebay.com/togo/togo.swf?2008013100" /><param name="flashvars" value="base=https://togo.ebay.com/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query='
					. urlencode($query['_nkw']) .'&campid=5336042350" /><embed src="https://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=https://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="https://togo.ebay.$1/togo/togo.swf?2008013100" /><param name="flashvars" value="base=https://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350" /><embed src="https://togo.ebay.$1/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=https://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350"></embed></object>', $text );
				*/
			}

par ça :
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="https://togo.ebay.com/togo/togo.swf?2008013100" /><param name="flashvars" value="base=https://togo.ebay.com/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query='
					. urlencode($query['_nkw']) .'&campid=5336042350" /><embed src="https://togo.ebay.com/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=https://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="https://togo.ebay.$1/togo/togo.swf?2008013100" /><param name="flashvars" value="base=https://togo.ebay.$1/togo/&lang=' . $config->ebaylanguagecode . '&mode=search&query=$2&campid=5336042350" /><embed src="https://togo.ebay.$1/togo/togo.swf?2008013100" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=https://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
8 years 4 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.

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