Fullscreen
Loading...
 
Skip to main content

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
(0)
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+
Demonstrate Bug (older Tiki versions)
Ticket ID
4355
Created
Sunday 06 January, 2013 01:58:10 UTC
by timcera
LastModif
Sunday 06 January, 2013 01:58:10 UTC


Show PHP error messages