Extension talk:Accordion/Archive 1

Does not work. The text is not displayed anymore.

Can you give some clues about the possible interferences of other extensions ?

In debug this warning is given: Parameter 3 to wfAccordionCallback expected to be a reference

veders.

my Solution I removed the ampersand from this Callback function in Accordion.php and it worked: --155.56.68.216 15:06, 29 July 2011 (UTC)Escobar

Accordion.js Hook event
seems to me that the Event should be registered like this: instead of otherwise I always get some js errors and accordion extension not working --155.56.68.216 15:06, 29 July 2011 (UTC)Escobar

= XSS Vulnerability = just check the $args['level'] var, and everything should be fine

Accordion.php
--155.56.68.215 09:30, 30 August 2011 (UTC)Escobar


 * I can tell you one thing at least. That code you posted doesn't fix the vulnerability, it only tests that a digit is present, not that the value is ONLY a digit. You can easily bypass that by including a number in the wikitext you put inside the level. Even in that case the var should be properly escaped... It also drops the isset and hence will start spewing php notices/errors when level is left out. Dantman 09:57, 30 August 2011 (UTC)


 * Yes you're right Dantman, I've been to fast with my solution:

I'm sure there's a better solution, since I'm not realy familiar with the MW structre, maybe there is a posibillity to check/sanitize the values with the builtin MW functionality. --155.56.68.217 16:48, 1 September 2011 (UTC) Escobar

Things needed of a fix include:
 * isset($args['level'])
 * (int)$args['level'] or intval($args['level'])
 * Xml::encodeJSVar
 * Dantman 17:24, 1 September 2011 (UTC)