Unescaped '\e' in lib/equation/class.latexrender.php
- Status
- Closed
- Subject
- Unescaped '\e' in lib/equation/class.latexrender.php
- Version
- 10.x
- Category
- Error
- Regression
- Less than 30-minutes fix
- Feature
- Wiki Plugin (extends basic syntax)
- Resolution status
- New
- Submitted by
- timcera
- Lastmod by
- timcera
- Rating
- Description
I couldn't get the equation plugin to work. Tracked it down to a '\end{document}' latex command that should be '\\end{document}' since PHP saw the '\e' as an escape.
The problem is around line 189 in lib/equation/class.latexrender.php.
Suggest that all strings that are written to the latex file should have lead with a '\\' within the 'wrap_formula' function, even though the only line that was giving me a problem was the '\end...'.
- Solution
Replace '\end...' with '\\end...' in lib/equation/class.latexrender.php at line 189.
- Importance
- 5
- Easy to solve?
- 10 easy
- Priority
- 50
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4355
- Created
- Sunday 06 January, 2013 01:58:10 UTC
by timcera - LastModif
- Sunday 06 January, 2013 01:58:10 UTC