×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

× 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
7 years 8 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
7 years 8 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
7 years 8 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.114 seconds