Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

\newcommand's influences should NOT be persistent #80

Open
Menci opened this issue Mar 21, 2019 · 0 comments
Open

\newcommand's influences should NOT be persistent #80

Menci opened this issue Mar 21, 2019 · 0 comments
Labels

Comments

@Menci
Copy link
Contributor

Menci commented Mar 21, 2019

If we use \newcommand in a TeX math, the influences will be persistent in current process.

The expected result is -- all \newcommands should only affect the current requested page.

The harm is that if I run a randering server with this library, a malicious person can submit a request that replaces builtin commands with their owns with \renewcommand, so later requests won't return correct result.

This upstream PR may help: mathjax/MathJax-node#348.

@Menci Menci changed the title \newcommand's influences will be persistent \newcommand's influences should NOT be persistent Mar 21, 2019
@pkra pkra added the upstream label May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants