Strata\Security\CommentParser

Wordpress comments, by default, allows one to inject javascript and weird HTML that may break a website.

    Synopsis

    class CommentParser extends ImprovementBase {
    • // Inherited methods from ImprovementBase
    • public abstract void register()
    }

    Hierarchy

    Methods

    protected

    • shouldParseComments() — Checks the configuration file to ensure we are expected to force Strata' comment parser.

    public

    Inherited from Strata\Security\ImprovementBase

    public

    • register() — Registers the filter that handles comment validation if required.