You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you set the seoTitle using seomatic.meta.seoTitle, the text inside of that is not filtered. If the title is set using user input, that input can run functionality and display it in the payload.
To reproduce
Use seomatic.meta.seoTitle and set the title with functionality such as {{7*7}}
Reload the page and look to see what the title is in the payload in the Web Inspector
Expected behaviour
The text should be a string where no functionality is run.
Screenshots
Versions
Plugin version: 3.3.16
Craft version: 3.3.19
The text was updated successfully, but these errors were encountered:
This is normal and expected behavior. SEOmatic parses the values it uses as Twig templates. In places where you set this manually to user input, you'll need to filter it as appropriate.
I've added a Twig function seomatic.helper.sanitizeUserInput to make that easier for you: 93ceb1a
Describe the bug
When you set the seoTitle using seomatic.meta.seoTitle, the text inside of that is not filtered. If the title is set using user input, that input can run functionality and display it in the payload.
To reproduce
Expected behaviour
The text should be a string where no functionality is run.
Screenshots
Versions
The text was updated successfully, but these errors were encountered: