Skip to content

fix: validate ticket priority against enum values#3

Merged
mpge merged 1 commit intomainfrom
fix/priority-validation
Apr 6, 2026
Merged

fix: validate ticket priority against enum values#3
mpge merged 1 commit intomainfrom
fix/priority-validation

Conversation

@mpge
Copy link
Copy Markdown
Member

@mpge mpge commented Apr 6, 2026

Summary

Priority in create() and create_guest() was passed through sanitize_text_field() which doesn't validate against allowed values. An invalid priority string (e.g., from a misconfigured default_priority setting or malformed input) would be stored as-is.

Now validates against Enums::ticket_priorities() keys and falls back to 'medium' if invalid.

Found during cross-framework audit of bugs fixed in escalated-laravel v1.1.0.

@mpge mpge merged commit c582a80 into main Apr 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant