TV Filter is a MODX Revolution component preventing content editors to save TVs with
@EVALvalues (see https://docs.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/template-variables/bindings/eval-binding)
- MODX Revolution (tested with 2.5.2 but should work with lower versions too)
- PHP 5.4+
- move the content of this repository in your MODX
corefolder - create a plugin with the content from the
core/components/tvfilter/elements/plugin/plugin.phpfile (you might make use of static elements), attached toOnMODXInit&OnBeforeDocFormSaveevents - edit/create a resource, and try to save it with a TV having
EVAL echo 'test failed';as value (you should be prevented to do so)
- create a build script to ease the installation
- see
@TODOnotes incore/components/tvfilter/tfilter.class.php