Skip to content

Validation on valid taxonomy handle need #428

@skrolikowski

Description

@skrolikowski

Describe the issue

Adding a double dash in the handle field for a Taxonomy will cause an error when saving. -- represents a comment in SQL.

To reproduce

Use a -- in the handle and attempt to save.

Screenshots

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--_pivot CHANGE tags_id tags--_id BIGINT UNSIGNED NOT NULL' at line 1 (SQL: ALTER TABLE taxonomy_tags--_pivot CHANGE tags_id tags--_id BIGINT UNSIGNED NOT NULL)

Version and browser

Version: Latest

Bug report checklist

  • I have filled out as much information as I can
  • I have detailed how the issue can be reproduced
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions