Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Aggressive jsObj escaping #27

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Aggressive jsObj escaping #27

wants to merge 3 commits into from

Conversation

stash
Copy link
Contributor

@stash stash commented Sep 24, 2014

Previously, we had the punctuation characters ",-.:[\]_{} allowed in the jsObj filter. This was mostly so the built-in JSON.stringify could be used without a replacer parameter for speed. However, this potentially allows for hijinx and other nonsense. This patch reduces the allowed punctuation to just ,.-_, which is the same as for the js filter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants