i posted this on the developer zone but after reading the Purpose of this forum (http://forum.joomla.org/index.php/topic,11776.0.html), i thought it was more suited to be here.
http://forum.joomla.org/index.php/topic,13846.0.html
it is about the problem mospagebreak has when parsing a title with special characters. the issue is well explained on the first post of the thread and on the second i proposed what i think is a suitable solution to the problem or at least a much better one that what is being done.
Please read the post mentioned above to understand the problem.
To summarize it, the createTOC() function in JOOMLA_FOLDER/mambots/content/mospaging.php uses the parse_str() PHP function 3 times within lines 145 to 185 which parses the string as if it were a url querystring.
The problem is that the editor, stores every special character as its htmlencode equivalent which introduces some ampersands in the string and breaks the title when its being parsed.
My proposed solution is the following:
change every line that does parse_str:
Code: Select all
parse_str( str_replace( '&', '&', $bot[2] ), $args2 );
Code: Select all
parse_str( html_entity_decode( $bot[2] ), $args2 );
but if an & is entered which will be converted to & the title will still be truncated, so my solution works for 99% of the cases but i suggest if mospagebreak doesn't have any other parameter besides title, to use whatever is placed after "title=" as the title for the TOC which completely solves the problem.
hope this is helpful