TagTable::check() does not validate field values #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
TagTable::check()only validates thatcontent_typeandcontent_idare non-empty. It does not:og_typeagainst allowed values (article, website, product, etc.)og_title(255),seo_title(70),meta_description(200)canonical_urlformatrobotscontains only valid directivescontent_typeagainst allowed patternsImpact
Invalid data stored in DB and output as meta tags. Social platform crawlers may reject pages or produce malformed HTML.
Acceptance Criteria
og_typeagainst enum of valid OG typescanonical_urlformat if non-emptyrobotsdirectives if non-emptycontent_typematches pattern[a-z_.]+File
src/packages/com_mokoog/src/Table/TagTable.php:35-49Branch created:
feature/43-tagtable-check-does-not-validate-field-v