Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Empty square brackets crash bug (1 viewing) (1) Guest
TOPIC: Empty square brackets crash bug
#39804
Empty square brackets crash bug 11 Months, 3 Weeks ago  
in 1.0.4 posting a serie of empty brackets like this
[ ][ ][ ]

makes the whole application fail (error 500) cause of a parse error
cause of the recusrsivity of the parse function that generates more [ ] during the parsing...

here is the solution:

in the parser.inc.php

add the line

$text = ereg_replace('[[:space:]]*]','',$text);//Bug Fix By WinterDryad

to the

function setText($text)

like this:

function setText($text) {
# define new text to parse
$text = ereg_replace('[[:space:]]*]','',$text);//Bug Fix By WinterDryad
$this->text = $text;
return TAGPARSER_RET_OK;

it basically strips all the useless empty tags from the core code before parsing.

after some attempts this is the best solution i've found.

hope u like it
WinterDryad (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/19 20:50 By WinterDryad. Reason: added some specs
 
 
Go to top